diff options
author | Ryan <fauxpark@gmail.com> | 2023-07-03 04:35:41 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 19:35:41 +0100 |
commit | 9ab16e62f75dc6228549ec0aba00ec0704bbc779 (patch) | |
tree | 1a9d2e4ea291b6d8e25bd13f6b68c5c30a709f06 /keyboards/novelkeys | |
parent | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff) |
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'keyboards/novelkeys')
-rwxr-xr-x | keyboards/novelkeys/novelpad/keymaps/0xdec/keymap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/novelkeys/novelpad/keymaps/0xdec/keymap.c b/keyboards/novelkeys/novelpad/keymaps/0xdec/keymap.c index 5380de9648..79a3e2fdbf 100755 --- a/keyboards/novelkeys/novelpad/keymaps/0xdec/keymap.c +++ b/keyboards/novelkeys/novelpad/keymaps/0xdec/keymap.c @@ -36,11 +36,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; -void led_set_user(uint8_t usb_led) { - if (usb_led & (1 << USB_LED_NUM_LOCK)) { +bool led_update_user(led_t led_state) { + if (led_state.num_lock) { // Illuminate the LED under the Num Lock key rgblight_sethsv_at(0, 0, 127, 1); } else { rgblight_sethsv_at(0, 0, 0, 1); } + return false; } |