aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-08-21 03:43:49 +1000
committerGitHub <noreply@github.com>2021-08-20 10:43:49 -0700
commita7d48b063ec9d551396eadeb02a924d2ee3ea515 (patch)
tree4a68b57078a5f2b2b4c6879f70ccbe75af82627b
parente8943a8b0c9d7ff4f078fe1f76f2c62c269767c5 (diff)
downloadqmk_firmware-a7d48b063ec9d551396eadeb02a924d2ee3ea515.tar.gz
qmk_firmware-a7d48b063ec9d551396eadeb02a924d2ee3ea515.zip
Fix LED Matrix suspend code (#14090)
-rw-r--r--quantum/led_matrix/led_matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c
index 913384913..50510e49a 100644
--- a/quantum/led_matrix/led_matrix.c
+++ b/quantum/led_matrix/led_matrix.c
@@ -460,7 +460,7 @@ void led_matrix_init(void) {
460void led_matrix_set_suspend_state(bool state) { 460void led_matrix_set_suspend_state(bool state) {
461#ifdef LED_DISABLE_WHEN_USB_SUSPENDED 461#ifdef LED_DISABLE_WHEN_USB_SUSPENDED
462 if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once 462 if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once
463 led_task_effect(0); // turn off all LEDs when suspending 463 led_task_render(0); // turn off all LEDs when suspending
464 led_task_flush(0); // and actually flash led state to LEDs 464 led_task_flush(0); // and actually flash led state to LEDs
465 } 465 }
466 suspend_state = state; 466 suspend_state = state;