diff options
Diffstat (limited to 'keyboards/kbdfans/niu_mini/keymaps')
-rw-r--r-- | keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c b/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c index 4224672152..8c7d3b8e0e 100644 --- a/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c +++ b/keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c @@ -377,13 +377,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { */ -void led_set_user(uint8_t usb_led) { - - if (usb_led & (1 << USB_LED_NUM_LOCK)) { - bnumlock = true; - - } else { - bnumlock = false; - } - +bool led_update_user(led_t led_state) { + bnumlock = led_state.num_lock; + return false; } |