fix: do not turn off leds when usb suspend is not set
This commit is contained in:
committed by
Florian Didron
parent
96a09786d8
commit
76ba4c4fa5
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user