Update rgb_matrix.c

pull/5990/head
Drashna Jaelre 6 years ago committed by GitHub
parent 60204faed0
commit 0886c7ce57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save