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/salicylic_acid3/setta21/keymaps | |
parent | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff) |
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'keyboards/salicylic_acid3/setta21/keymaps')
-rw-r--r-- | keyboards/salicylic_acid3/setta21/keymaps/salicylic/keymap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/salicylic_acid3/setta21/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/setta21/keymaps/salicylic/keymap.c index e117d26eee..b7cde4d4e0 100644 --- a/keyboards/salicylic_acid3/setta21/keymaps/salicylic/keymap.c +++ b/keyboards/salicylic_acid3/setta21/keymaps/salicylic/keymap.c @@ -173,8 +173,8 @@ void render_layer_state(void) { oled_write_P(PSTR(" Macro "), layer_state_is(_MACRO)); } -void render_keylock_status(uint8_t led_usb_state) { - oled_write_P(PSTR("NumLock"), led_usb_state & (1 << USB_LED_NUM_LOCK)); +void render_keylock_status(led_t led_state) { + oled_write_P(PSTR("NumLock"), led_state.num_lock); oled_write_P(PSTR(" "), false); } @@ -186,7 +186,7 @@ void render_layer_messages(void) { void render_status(void) { /* Show Keyboard Layout */ render_layer_messages(); - render_keylock_status(host_keyboard_leds()); + render_keylock_status(host_keyboard_led_state()); render_layer_state(); } |