aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/infinity60/led_controller.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/keyboards/infinity60/led_controller.c b/keyboards/infinity60/led_controller.c
index 707b4e0df..75806d54b 100644
--- a/keyboards/infinity60/led_controller.c
+++ b/keyboards/infinity60/led_controller.c
@@ -317,19 +317,19 @@ page_status = 0; //start frame 0 (all off/on)
317 317
318 case TOGGLE_NUM_LOCK: 318 case TOGGLE_NUM_LOCK:
319 //msg_led = 0 or 1, off/on 319 //msg_led = 0 or 1, off/on
320 set_lock_leds(NUM_LOCK_LED_ADDRESS, msg_led); 320 set_lock_leds(NUM_LOCK_LED_ADDRESS, 1);
321 break; 321 break;
322 322
323 case TOGGLE_CAPS_LOCK: 323 case TOGGLE_CAPS_LOCK:
324 //msg_led = 0 or 1, off/on 324 //msg_led = 0 or 1, off/on
325 set_lock_leds(CAPS_LOCK_LED_ADDRESS, msg_led); 325 set_lock_leds(CAPS_LOCK_LED_ADDRESS, 1);
326 break; 326 break;
327 327
328 //TODO: MODE_BREATH 328 //TODO: MODE_BREATH
329 case MODE_BREATH: 329 case MODE_BREATH:
330 break; 330 break;
331 case STEP_BRIGHTNESS: 331 case STEP_BRIGHTNESS:
332 xprintf("STEP_BACKLIGHT\n"); 332 xprintf("TOGGLE_BACKLIGHT\n");
333 chThdSleepMilliseconds(10); 333 chThdSleepMilliseconds(10);
334 //led_msg = step pwm up or down 334 //led_msg = step pwm up or down
335 switch (msg_led) { 335 switch (msg_led) {
@@ -459,10 +459,8 @@ void set_led_bit (uint8_t page, uint8_t *led_control_reg, uint8_t led_addr, uint
459} 459}
460 460
461void set_lock_leds(uint8_t led_addr, uint8_t led_action) { 461void set_lock_leds(uint8_t led_addr, uint8_t led_action) {
462 uint8_t page, temp; 462 uint8_t page;
463 uint8_t led_control_word[2] = {0}; 463 uint8_t led_control_word[2] = {0};
464 //TODO: this function call could send led address vs lock_type.
465 //however, the switch/case allows for additional steps, like audio, depending on type
466 464
467 //ignore frame0 if all leds are on or if option set in led_controller.h 465 //ignore frame0 if all leds are on or if option set in led_controller.h
468 //TODO: blink of all leds are on, clear blink register if not 466 //TODO: blink of all leds are on, clear blink register if not