Get rid of USB_LED_NUM_LOCK (#21424)

This commit is contained in:
Ryan
2023-07-03 04:35:41 +10:00
committed by GitHub
parent 7ff80a57cb
commit 9ab16e62f7
25 changed files with 91 additions and 133 deletions
@@ -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);
}
};