diff options
author | Drashna Jaelre <drashna@live.com> | 2019-04-20 09:20:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 09:20:26 -0700 |
commit | 60204faed0613f49868a64355bba29d9b02688e3 (patch) | |
tree | cf25f9bc7c5b32cc579ac635643a67bcea5f6576 /quantum | |
parent | 0612c9968bf34fc1acde2b44ac9fd590f97ffe34 (diff) |
Only increment Enable status for RGB Matrix if it supports it
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgb_matrix.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |