summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2019-08-07 11:05:14 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2019-08-08 08:54:52 +0900
commit573e0bfab1275a71551e17b95594944d6fc01a07 (patch)
treeb24740656a25fe07c7aceec2b3f60d2212ea37be /keyboards
parentc8db6dfdd3748ef674ded84b61fb81129f1ac5de (diff)
Fix isses with toggling
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c3
-rw-r--r--keyboards/planck/ez/ez.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 4dcf5e2754..a67707895d 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -350,6 +350,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
case TOGGLE_LAYER_COLOR:
if (record->event.pressed) {
keyboard_config.disable_layer_led ^= 1;
+ if (keyboard_config.disable_layer_led)
+ rgb_matrix_set_color_all(0, 0, 0);
eeconfig_update_kb(keyboard_config.raw);
}
break;
@@ -359,6 +361,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
case LED_FLAG_ALL: {
rgb_matrix_set_flags(LED_FLAG_NONE);
keyboard_config.rgb_matrix_enable = false;
+ rgb_matrix_set_color_all(0, 0, 0);
}
break;
default: {
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index fc2c938eeb..543f04a67f 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -279,6 +279,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
case TOGGLE_LAYER_COLOR:
if (record->event.pressed) {
keyboard_config.disable_layer_led ^= 1;
+ if (keyboard_config.disable_layer_led)
+ rgb_matrix_set_color_all(0, 0, 0);
eeconfig_update_kb(keyboard_config.raw);
}
break;
@@ -288,6 +290,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
case LED_FLAG_ALL: {
rgb_matrix_set_flags(LED_FLAG_NONE);
keyboard_config.rgb_matrix_enable = false;
+ rgb_matrix_set_color_all(0, 0, 0);
}
break;
default: {