diff options
author | Ryan <fauxpark@gmail.com> | 2023-07-03 04:24:22 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 19:24:22 +0100 |
commit | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (patch) | |
tree | 9917aa79a37e2c51124b63af094da8a96591313c /keyboards/handwired/datahand | |
parent | 9dbad1fa5c068c42f0e948242a2f1922824fbb22 (diff) |
Get rid of `USB_LED_SCROLL_LOCK` (#21405)
Diffstat (limited to 'keyboards/handwired/datahand')
-rw-r--r-- | keyboards/handwired/datahand/keymaps/default/keymap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/handwired/datahand/keymaps/default/keymap.c b/keyboards/handwired/datahand/keymaps/default/keymap.c index 7ebcff366f..608c45dea3 100644 --- a/keyboards/handwired/datahand/keymaps/default/keymap.c +++ b/keyboards/handwired/datahand/keymaps/default/keymap.c @@ -302,8 +302,9 @@ void matrix_init_user(void) { #endif } -void led_set_user(uint8_t usb_led) { - lock_led_set(usb_led & (1<<USB_LED_NUM_LOCK), LED_NUM_LOCK); - lock_led_set(usb_led & (1<<USB_LED_CAPS_LOCK), LED_CAPS_LOCK); - lock_led_set(usb_led & (1<<USB_LED_SCROLL_LOCK), LED_SCROLL_LOCK); +bool led_update_user(led_t led_state) { + lock_led_set(led_state.num_lock, LED_NUM_LOCK); + lock_led_set(led_state.caps_lock, LED_CAPS_LOCK); + lock_led_set(led_state.scroll_lock, LED_SCROLL_LOCK); + return false; } |