summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez
diff options
context:
space:
mode:
authorFlorian Didron <florian@111studio.jp>2019-08-17 11:02:33 +0900
committerFlorian Didron <fdidron@users.noreply.github.com>2019-08-17 02:42:35 +0000
commit76ba4c4fa5f7908394c46063d53f676293ee70eb (patch)
treed442c18cd380fa6e55e4174f7178dfbd035ab5d0 /keyboards/ergodox_ez
parent96a09786d895da9d82048d962c7136ce90be6ce0 (diff)
fix: do not turn off leds when usb suspend is not set
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c2
1 files changed, 2 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();
}