Skip to content

Commit

Permalink
[Keyboard] Fix RGB_TOG cycle for Massdrop CTRL default keymap (qmk#6056)
Browse files Browse the repository at this point in the history
This includes the modifier keys in "keys only" mode, bringing the keymap
closer to what the off-the-shelf firmware does.
  • Loading branch information
doughsay authored and drashna committed Aug 22, 2019
1 parent 129e4d1 commit 8a2e328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyboards/massdrop/ctrl/keymaps/mac/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8a2e328

Please sign in to comment.