Rename LED_DISABLE_WHEN_USB_SUSPENDED
-> LED_MATRIX_SLEEP
(#22681)
This commit is contained in:
parent
b9e81c0691
commit
73758d3d3a
9 changed files with 11 additions and 10 deletions
|
@ -434,7 +434,7 @@ void led_matrix_init(void) {
|
|||
}
|
||||
|
||||
void led_matrix_set_suspend_state(bool state) {
|
||||
#ifdef LED_DISABLE_WHEN_USB_SUSPENDED
|
||||
#ifdef LED_MATRIX_SLEEP
|
||||
if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once
|
||||
led_task_render(0); // turn off all LEDs when suspending
|
||||
led_task_flush(0); // and actually flash led state to LEDs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue