summaryrefslogtreecommitdiff
path: root/keyboards/massdrop/alt/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/alt/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/alt/keymaps')
-rw-r--r--keyboards/massdrop/alt/keymaps/default_md/keymap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/massdrop/alt/keymaps/default_md/keymap.c b/keyboards/massdrop/alt/keymaps/default_md/keymap.c
index 5bd543ed63..fa8b294cd1 100644
--- a/keyboards/massdrop/alt/keymaps/default_md/keymap.c
+++ b/keyboards/massdrop/alt/keymaps/default_md/keymap.c
@@ -62,6 +62,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;