Fix LED Matrix suspend code (#14090)
This commit is contained in:
parent
e8943a8b0c
commit
a7d48b063e
@ -460,7 +460,7 @@ void led_matrix_init(void) {
|
|||||||
void led_matrix_set_suspend_state(bool state) {
|
void led_matrix_set_suspend_state(bool state) {
|
||||||
#ifdef LED_DISABLE_WHEN_USB_SUSPENDED
|
#ifdef LED_DISABLE_WHEN_USB_SUSPENDED
|
||||||
if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once
|
if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once
|
||||||
led_task_effect(0); // turn off all LEDs when suspending
|
led_task_render(0); // turn off all LEDs when suspending
|
||||||
led_task_flush(0); // and actually flash led state to LEDs
|
led_task_flush(0); // and actually flash led state to LEDs
|
||||||
}
|
}
|
||||||
suspend_state = state;
|
suspend_state = state;
|
||||||
|
Loading…
Reference in New Issue
Block a user