Various fixes for keyboards not implementing callbacks correctly (#24116)

This commit is contained in:
Joel Challis 2024-07-14 06:38:04 +01:00 committed by GitHub
parent e76069ea4e
commit c0aca9f45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 30 additions and 33 deletions

View file

@ -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;
}