summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorFlorian Didron <florian@111studio.jp>2019-08-17 11:36:54 +0900
committerFlorian Didron <fdidron@users.noreply.github.com>2019-08-17 02:42:35 +0000
commit8f065c420bed3818197ac7c33118e9253be68711 (patch)
tree90c54ef41f986ab974170a2f51377c9c4f16907b /quantum
parent76ba4c4fa5f7908394c46063d53f676293ee70eb (diff)
chore: move led shutdown logic in rgb_matric.c
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgb_matrix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c
index f649525ccb..f4d251c99c 100644
--- a/quantum/rgb_matrix.c
+++ b/quantum/rgb_matrix.c
@@ -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;
}