From 60204faed0613f49868a64355bba29d9b02688e3 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 20 Apr 2019 09:20:26 -0700 Subject: [PATCH] Only increment Enable status for RGB Matrix if it supports it --- quantum/rgb_matrix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index a1193d4c07..2fb64368bc 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -511,7 +511,11 @@ void rgb_matrix_set_suspend_state(bool state) { } void rgb_matrix_toggle(void) { +#ifdef RGB_MATRIX_EXTRA_TOG rgb_matrix_config.enable++; +#else + rgb_matrix_config.enable ^= 1; +#endif if (!rgb_matrix_config.enable) { rgb_task_state = STARTING; }