aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/infinity60
diff options
context:
space:
mode:
authorGravatar jpetermans <tibcmhhm@gmail.com>2017-05-08 14:55:57 -0700
committerGravatar jpetermans <tibcmhhm@gmail.com>2017-05-08 14:55:57 -0700
commitf1d81d2cc6f257925d8582da630aadf5170bd878 (patch)
tree39c2f5cc7f04c31e88f367ce72e834c99632c67d /keyboards/infinity60
parentff6beeb7a313953c589defb6af1f9ae461cba03a (diff)
downloadqmk_firmware-f1d81d2cc6f257925d8582da630aadf5170bd878.tar.gz
minor change on lock leds
Diffstat (limited to 'keyboards/infinity60')
-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)
case TOGGLE_NUM_LOCK:
//msg_led = 0 or 1, off/on
- set_lock_leds(NUM_LOCK_LED_ADDRESS, msg_led);
+ set_lock_leds(NUM_LOCK_LED_ADDRESS, 1);
break;
case TOGGLE_CAPS_LOCK:
//msg_led = 0 or 1, off/on
- set_lock_leds(CAPS_LOCK_LED_ADDRESS, msg_led);
+ set_lock_leds(CAPS_LOCK_LED_ADDRESS, 1);
break;
//TODO: MODE_BREATH
case MODE_BREATH:
break;
case STEP_BRIGHTNESS:
- xprintf("STEP_BACKLIGHT\n");
+ xprintf("TOGGLE_BACKLIGHT\n");
chThdSleepMilliseconds(10);
//led_msg = step pwm up or down
switch (msg_led) {
@@ -459,10 +459,8 @@ void set_led_bit (uint8_t page, uint8_t *led_control_reg, uint8_t led_addr, uint
}
void set_lock_leds(uint8_t led_addr, uint8_t led_action) {
- uint8_t page, temp;
+ uint8_t page;
uint8_t led_control_word[2] = {0};
- //TODO: this function call could send led address vs lock_type.
- //however, the switch/case allows for additional steps, like audio, depending on type
//ignore frame0 if all leds are on or if option set in led_controller.h
//TODO: blink of all leds are on, clear blink register if not