diff options
author | Chris Dosé <chris.dose@gmail.com> | 2019-08-21 17:47:45 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-08-21 17:47:45 -0700 |
commit | 8a2e328a33efd9479d5176ed959ade725b62d9b0 (patch) | |
tree | fc652f166670e30b10dae218a48b3ed629c8cfe6 | |
parent | 129e4d1b2f481c09c4f67d24656e6af9cf92b1b6 (diff) |
[Keyboard] Fix RGB_TOG cycle for Massdrop CTRL default keymap (#6056)
This includes the modifier keys in "keys only" mode, bringing the keymap
closer to what the off-the-shelf firmware does.
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/mac/keymap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/mac/keymap.c b/keyboards/massdrop/ctrl/keymaps/mac/keymap.c index 79fe7388af..e5b194a343 100644 --- a/keyboards/massdrop/ctrl/keymaps/mac/keymap.c +++ b/keyboards/massdrop/ctrl/keymaps/mac/keymap.c @@ -102,11 +102,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { if (record->event.pressed) { switch (rgb_matrix_get_flags()) { case LED_FLAG_ALL: { - rgb_matrix_set_flags(LED_FLAG_KEYLIGHT); + rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER); rgb_matrix_set_color_all(0, 0, 0); } break; - case LED_FLAG_KEYLIGHT: { + case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: { rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); rgb_matrix_set_color_all(0, 0, 0); } |