diff options
author | Ryan <fauxpark@gmail.com> | 2023-07-03 04:35:41 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 19:35:41 +0100 |
commit | 9ab16e62f75dc6228549ec0aba00ec0704bbc779 (patch) | |
tree | 1a9d2e4ea291b6d8e25bd13f6b68c5c30a709f06 /keyboards/input_club/infinity60/led_controller.c | |
parent | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff) |
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'keyboards/input_club/infinity60/led_controller.c')
-rw-r--r-- | keyboards/input_club/infinity60/led_controller.c | 5 |
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) |