chore: move led shutdown logic in rgb_matric.c

This commit is contained in:
Florian Didron
2019-08-17 11:36:54 +09:00
committed by Florian Didron
parent 76ba4c4fa5
commit 8f065c420b
3 changed files with 3 additions and 6 deletions

View File

@@ -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;
}