Get rid of USB_LED_CAPS_LOCK
(#21436)
This commit is contained in:
parent
928e03e8d6
commit
87b11345a5
70 changed files with 214 additions and 226 deletions
|
@ -43,8 +43,8 @@ static void check_light_layer(layer_state_t state) {
|
|||
last_checked_layer = true;
|
||||
}
|
||||
|
||||
static void check_light_led(uint8_t leds) {
|
||||
if (IS_LED_ON(leds, USB_LED_CAPS_LOCK)) {
|
||||
static void check_light_led(led_t led_state) {
|
||||
if (led_state.caps_lock) {
|
||||
caps_light();
|
||||
} else if (IS_LAYER_ON(L_FN)) {
|
||||
fn_light();
|
||||
|
@ -57,7 +57,7 @@ static void check_light_led(uint8_t leds) {
|
|||
static void inline check_light(void) {
|
||||
last_checked_layer
|
||||
? check_light_layer(layer_state)
|
||||
: check_light_led(host_keyboard_leds());
|
||||
: check_light_led(host_keyboard_led_state());
|
||||
}
|
||||
|
||||
void eeconfig_init_keymap(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue