diff options
Diffstat (limited to 'keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c')
-rw-r--r-- | keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c b/keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c index 21f8fcbb0f..f02f27005b 100644 --- a/keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c +++ b/keyboards/kprepublic/jj50/keymaps/abstractkb/keymap.c @@ -64,12 +64,13 @@ layer_state_t layer_state_set_user(layer_state_t state) { return state; } -void led_set_user(uint8_t usb_led) { - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { +bool led_update_user(led_t led_state) { + if (led_state.caps_lock) { rgblight_mode_noeeprom(RGBLIGHT_MODE_ALTERNATING); } else { layer_state_set_user(layer_state); } + return false; } void myrgb_toggle(void) { |