summaryrefslogtreecommitdiffstats
path: root/keyboards/kbdfans/niu_mini/keymaps/tobias
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/kbdfans/niu_mini/keymaps/tobias
parent7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff)
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'keyboards/kbdfans/niu_mini/keymaps/tobias')
-rw-r--r--keyboards/kbdfans/niu_mini/keymaps/tobias/keymap.c12
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;
}