summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/rgb_matrix.c1
1 files changed, 1 insertions, 0 deletions
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;