Get rid of USB_LED_CAPS_LOCK (#21436)

This commit is contained in:
Ryan 2023-07-06 18:48:02 +10:00 committed by GitHub
parent 928e03e8d6
commit 87b11345a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 214 additions and 226 deletions

View file

@ -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) {