diff options
Diffstat (limited to 'keyboards/handwired/datahand/keymaps/default/keymap.c')
-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; } |