Various fixes for keyboards not implementing callbacks correctly (#24116)
This commit is contained in:
parent
e76069ea4e
commit
c0aca9f45c
8 changed files with 30 additions and 33 deletions
|
@ -36,8 +36,10 @@ void keyboard_post_init_kb(void) {
|
|||
|
||||
// Activate rgb layer for caps when capslock is enabled
|
||||
bool led_update_kb(led_t led_state) {
|
||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||
rgblight_set_layer_state(1, led_state.num_lock);
|
||||
rgblight_set_layer_state(2, led_state.scroll_lock);
|
||||
if(led_update_user(led_state)) {
|
||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||
rgblight_set_layer_state(1, led_state.num_lock);
|
||||
rgblight_set_layer_state(2, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue