1
0
Fork 0

Add support to persist MD LED framework settings (#14980)

* Add support to persist MD LED framework settings

* avoid out-of-bounds errors when SmartEEPROM is not enabled

* Update brightness defaults

* clang
This commit is contained in:
Joel Challis 2021-11-01 22:45:30 +00:00 committed by GitHub
parent f4ea262c17
commit 7ae0f371cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 106 additions and 31 deletions

View file

@ -64,6 +64,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint32_t key_timer;
static uint8_t scroll_effect = 0;
switch (keycode) {
case L_BRI ... U_T_AGCR:
if (record->event.pressed) {
md_led_changed();
}
break;
}
switch (keycode) {
case L_BRI:
if (record->event.pressed) {