summaryrefslogtreecommitdiff
path: root/keyboards/massdrop/ctrl/keymaps
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-11-01 22:45:30 +0000
committerGitHub <noreply@github.com>2021-11-02 09:45:30 +1100
commit7ae0f371cf55a589a4735098f52e722f579de41d (patch)
tree747be483f3019d0603f0bf7c214245379031c3a1 /keyboards/massdrop/ctrl/keymaps
parentf4ea262c17ecd53b18180a19c33a9ba5da70ec9d (diff)
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')
-rw-r--r--keyboards/massdrop/ctrl/keymaps/default_md/keymap.c8
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;