diff options
| author | Ryan <fauxpark@gmail.com> | 2023-12-20 13:31:39 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-20 13:31:39 +1100 |
| commit | 73758d3d3a3bbee76bd1c9946d4c663c28f166f0 (patch) | |
| tree | e95d82b5b125d1aba00cc366730ff5e6aab5992e /quantum/led_matrix | |
| parent | b9e81c06911a4e3345acf09cd499a9661eea67b8 (diff) | |
Rename `LED_DISABLE_WHEN_USB_SUSPENDED` -> `LED_MATRIX_SLEEP` (#22681)
Diffstat (limited to 'quantum/led_matrix')
| -rw-r--r-- | quantum/led_matrix/led_matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c index eee43d9281..760a8b7484 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c | |||
| @@ -434,7 +434,7 @@ void led_matrix_init(void) { | |||
| 434 | } | 434 | } |
| 435 | 435 | ||
| 436 | void led_matrix_set_suspend_state(bool state) { | 436 | void led_matrix_set_suspend_state(bool state) { |
| 437 | #ifdef LED_DISABLE_WHEN_USB_SUSPENDED | 437 | #ifdef LED_MATRIX_SLEEP |
| 438 | if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once | 438 | if (state && !suspend_state && is_keyboard_master()) { // only run if turning off, and only once |
| 439 | led_task_render(0); // turn off all LEDs when suspending | 439 | led_task_render(0); // turn off all LEDs when suspending |
| 440 | led_task_flush(0); // and actually flash led state to LEDs | 440 | led_task_flush(0); // and actually flash led state to LEDs |
