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

@ -85,7 +85,7 @@ void highlight_layer3(void){
}
bool rgb_matrix_indicators_user(void) {
uint8_t this_led = host_keyboard_leds();
led_t led_state = host_keyboard_led_state();
if (!g_suspend_state) {
switch (get_highest_layer(layer_state)) {
case 3:
@ -94,7 +94,7 @@ bool rgb_matrix_indicators_user(void) {
break;
}
}
if ( this_led & (1<<USB_LED_CAPS_LOCK)) {
if (led_state.caps_lock) {
rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF);
}
return false;

View file

@ -146,7 +146,7 @@ void highlight_layer3(void) {
}
bool rgb_matrix_indicators_user(void) {
uint8_t this_led = host_keyboard_leds();
led_t led_state = host_keyboard_led_state();
if (!g_suspend_state) {
switch (get_highest_layer(layer_state)) {
case 1:
@ -161,7 +161,7 @@ bool rgb_matrix_indicators_user(void) {
break;
}
}
if ( this_led & (1<<USB_LED_CAPS_LOCK)) {
if (led_state.caps_lock) {
rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF);
}
return false;