summary refs log tree commit diff
path: root/layouts
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 /layouts
parent7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff)
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/community/numpad_5x6/bjohnson/keymap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/community/numpad_5x6/bjohnson/keymap.c b/layouts/community/numpad_5x6/bjohnson/keymap.c
index 71c8829d02..63b358f226 100644
--- a/layouts/community/numpad_5x6/bjohnson/keymap.c
+++ b/layouts/community/numpad_5x6/bjohnson/keymap.c
@@ -35,12 +35,13 @@ void keyboard_post_init_user(void) {
 #endif
 }
 
-void led_set_user(uint8_t usb_led) {
-  if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
+bool led_update_user(led_t led_state) {
+  if (led_state.num_lock) {
     rgblight_sethsv_noeeprom(HSV_CYAN);
   } else {
     rgblight_sethsv_noeeprom(HSV_MAGENTA);
   }
+  return false;
 }
 
 void shutdown_user (void) {