diff options
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.c | 2 |
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(); } |