summaryrefslogtreecommitdiff
path: root/keyboards/input_club/infinity60/led_controller.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-07-03 04:35:41 +1000
committerGitHub <noreply@github.com>2023-07-02 19:35:41 +0100
commit9ab16e62f75dc6228549ec0aba00ec0704bbc779 (patch)
tree1a9d2e4ea291b6d8e25bd13f6b68c5c30a709f06 /keyboards/input_club/infinity60/led_controller.c
parent7ff80a57cbe57e888646c3b90e2f4f9dea977156 (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.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)