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/massdrop/alt | |
parent | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (diff) |
Get rid of `USB_LED_NUM_LOCK` (#21424)
Diffstat (limited to 'keyboards/massdrop/alt')
-rw-r--r-- | keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c b/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c index 51772f1fa3..c974fb9e2b 100644 --- a/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c +++ b/keyboards/massdrop/alt/keymaps/jdelkins_ss/keymap.c @@ -26,7 +26,6 @@ uint16_t rgb_idle_seconds = 0; uint16_t rgb_timer; uint8_t save_layer; -#define NUMLOCK_ON (host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) #define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT) #define MODS_CTRL (get_mods() & MOD_MASK_CTRL) @@ -143,7 +142,7 @@ static void set_rgb_layer(int layer) { void matrix_init_keymap(void) { set_rgb_layer(_QWERTY); // force numlock on upon startup - if (!NUMLOCK_ON) { + if (!host_keyboard_led_state().num_lock) { tap_code(KC_NUM_LOCK); } }; |