summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c2
-rw-r--r--keyboards/planck/ez/ez.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index f755f792c5..3c6653a9f6 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -222,7 +222,9 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void) {
+#if RGB_DISABLE_WHEN_USB_SUSPENDED == true
rgb_matrix_set_color_all(0, 0, 0);
+#endif
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index 722304732d..59b9bb61bb 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -22,7 +22,9 @@ keyboard_config_t keyboard_config;
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void) {
+#if RGB_DISABLE_WHEN_USB_SUSPENDED == true
rgb_matrix_set_color_all(0, 0, 0);
+#endif
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}