chore: move led shutdown logic in rgb_matric.c
This commit is contained in:
committed by
Florian Didron
parent
76ba4c4fa5
commit
8f065c420b
@@ -436,6 +436,9 @@ void rgb_matrix_init(void) {
|
||||
}
|
||||
|
||||
void rgb_matrix_set_suspend_state(bool state) {
|
||||
if (state && RGB_DISABLE_WHEN_USB_SUSPENDED) {
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
}
|
||||
g_suspend_state = state;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user