1
0
Fork 0

Timber Wolf - updated via keymap, reduced eeprom writing from backlight code (#9876)

Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Croktopus 2020-07-30 07:52:54 -07:00 committed by GitHub
parent 9758bcb28b
commit 08f31f664a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 18 deletions

View file

@ -18,10 +18,12 @@
bool led_update_kb(led_t led_state) {
bool runDefault = led_update_user(led_state);
if (led_state.caps_lock) {
backlight_enable();
} else {
backlight_disable();
}
if(runDefault) {
if (led_state.caps_lock) {
backlight_level_noeeprom(get_backlight_level());
} else {
backlight_set(0);
}
}
return runDefault;
}
}