Only increment Enable status for RGB Matrix if it supports it
This commit is contained in:
@@ -511,7 +511,11 @@ void rgb_matrix_set_suspend_state(bool state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void rgb_matrix_toggle(void) {
|
void rgb_matrix_toggle(void) {
|
||||||
|
#ifdef RGB_MATRIX_EXTRA_TOG
|
||||||
rgb_matrix_config.enable++;
|
rgb_matrix_config.enable++;
|
||||||
|
#else
|
||||||
|
rgb_matrix_config.enable ^= 1;
|
||||||
|
#endif
|
||||||
if (!rgb_matrix_config.enable) {
|
if (!rgb_matrix_config.enable) {
|
||||||
rgb_task_state = STARTING;
|
rgb_task_state = STARTING;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user