diff options
author | Joel Challis <git@zvecr.com> | 2021-11-01 22:45:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 09:45:30 +1100 |
commit | 7ae0f371cf55a589a4735098f52e722f579de41d (patch) | |
tree | 747be483f3019d0603f0bf7c214245379031c3a1 /keyboards/massdrop/ctrl/keymaps/default_md | |
parent | f4ea262c17ecd53b18180a19c33a9ba5da70ec9d (diff) | |
download | qmk_firmware-7ae0f371cf55a589a4735098f52e722f579de41d.tar.gz qmk_firmware-7ae0f371cf55a589a4735098f52e722f579de41d.zip |
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
Diffstat (limited to 'keyboards/massdrop/ctrl/keymaps/default_md')
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/default_md/keymap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/default_md/keymap.c b/keyboards/massdrop/ctrl/keymaps/default_md/keymap.c index cf4eea646d..db36131fca 100644 --- a/keyboards/massdrop/ctrl/keymaps/default_md/keymap.c +++ b/keyboards/massdrop/ctrl/keymaps/default_md/keymap.c @@ -65,6 +65,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { 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) { if (LED_GCR_STEP > LED_GCR_MAX - gcr_desired) gcr_desired = LED_GCR_MAX; |