Skip to content

Commit

Permalink
Update rgb_matrix.c
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored Apr 20, 2019
1 parent 60204fa commit 0886c7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quantum/rgb_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ void rgb_matrix_toggle(void) {
rgb_matrix_config.enable++;
#else
rgb_matrix_config.enable ^= 1;
if (rgb_matrix_config.enable > 1) { rgb_matrix_config.enable = 0; } // make sure that if we are treating this as a bool, that it is only 1 or 0.
#endif
if (!rgb_matrix_config.enable) {
rgb_task_state = STARTING;
Expand Down

0 comments on commit 0886c7c

Please sign in to comment.