diff options
| author | Joakim Tufvegren <jocke@barbanet.com> | 2021-07-20 03:54:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-19 18:54:32 -0700 |
| commit | 1414e9736d441f4cefbdd2f88157419066f96f71 (patch) | |
| tree | 927b51b9a42698ad9b297ac55a9870fc21b535d3 /quantum/led_matrix | |
| parent | 85621311db62a3a2a264cb7c9edefb7cab731e4c (diff) | |
| download | qmk_firmware-1414e9736d441f4cefbdd2f88157419066f96f71.tar.gz qmk_firmware-1414e9736d441f4cefbdd2f88157419066f96f71.zip | |
Switch Ergodox Infinity over to split_common (#13481)
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 fe7f1f039..bcf258b26 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c | |||
| @@ -459,7 +459,7 @@ void led_matrix_init(void) { | |||
| 459 | 459 | ||
| 460 | void led_matrix_set_suspend_state(bool state) { | 460 | void led_matrix_set_suspend_state(bool state) { |
| 461 | #ifdef LED_DISABLE_WHEN_USB_SUSPENDED | 461 | #ifdef LED_DISABLE_WHEN_USB_SUSPENDED |
| 462 | if (state) { | 462 | if (state && is_keyboard_master()) { |
| 463 | led_matrix_set_value_all(0); // turn off all LEDs when suspending | 463 | led_matrix_set_value_all(0); // turn off all LEDs when suspending |
| 464 | } | 464 | } |
| 465 | suspend_state = state; | 465 | suspend_state = state; |
