summaryrefslogtreecommitdiff
path: root/keyboards/input_club/infinity60/led_controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/input_club/infinity60/led_controller.c')
-rw-r--r--keyboards/input_club/infinity60/led_controller.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/input_club/infinity60/led_controller.c b/keyboards/input_club/infinity60/led_controller.c
index cf3edf20dd..5ea0ae804c 100644
--- a/keyboards/input_club/infinity60/led_controller.c
+++ b/keyboards/input_club/infinity60/led_controller.c
@@ -187,8 +187,9 @@ static THD_FUNCTION(LEDthread, arg) {
// initialize persistent variables
pwm_step_status = 4; //full brightness
page_status = 0; //start frame 0 (all off/on)
- numlock_status = (host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ? 1 : 0;
- capslock_status = (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ? 1 : 0;
+ led_t led_state = host_keyboard_led_state();
+ numlock_status = led_state.num_lock ? 1 : 0;
+ capslock_status = led_state.caps_lock ? 1 : 0;
while(true) {
// wait for a message (asynchronous)