From 0886c7ce573d2d1346b90bc2a9785242bae70dc2 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 20 Apr 2019 09:28:44 -0700 Subject: [PATCH] Update rgb_matrix.c --- quantum/rgb_matrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 2fb64368bc..3e49f9fc0a 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -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;