diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-05-12 18:24:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-13 11:24:44 +1000 |
| commit | da0c551692b117e4f91ca3e446155027290e3c96 (patch) | |
| tree | 8a026ef020733dcf15b5030039a4fe66d9fc24a9 /tmk_core/common/avr | |
| parent | d200e3de8ebba08e374b53063638575e04bff543 (diff) | |
| download | qmk_firmware-da0c551692b117e4f91ca3e446155027290e3c96.tar.gz qmk_firmware-da0c551692b117e4f91ca3e446155027290e3c96.zip | |
Add missing LED Matrix suspend code to suspend.c (#12878)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'tmk_core/common/avr')
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c index e9ee0aefd..690d7f38c 100644 --- a/tmk_core/common/avr/suspend.c +++ b/tmk_core/common/avr/suspend.c | |||
| @@ -163,6 +163,9 @@ void suspend_power_down(void) { | |||
| 163 | rgblight_suspend(); | 163 | rgblight_suspend(); |
| 164 | # endif | 164 | # endif |
| 165 | 165 | ||
| 166 | # if defined(LED_MATRIX_ENABLE) | ||
| 167 | led_matrix_set_suspend_state(true); | ||
| 168 | # endif | ||
| 166 | # if defined(RGB_MATRIX_ENABLE) | 169 | # if defined(RGB_MATRIX_ENABLE) |
| 167 | rgb_matrix_set_suspend_state(true); | 170 | rgb_matrix_set_suspend_state(true); |
| 168 | # endif | 171 | # endif |
| @@ -218,6 +221,10 @@ void suspend_wakeup_init(void) { | |||
| 218 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | 221 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |
| 219 | rgblight_wakeup(); | 222 | rgblight_wakeup(); |
| 220 | #endif | 223 | #endif |
| 224 | |||
| 225 | #if defined(LED_MATRIX_ENABLE) | ||
| 226 | led_matrix_set_suspend_state(false); | ||
| 227 | #endif | ||
| 221 | #if defined(RGB_MATRIX_ENABLE) | 228 | #if defined(RGB_MATRIX_ENABLE) |
| 222 | rgb_matrix_set_suspend_state(false); | 229 | rgb_matrix_set_suspend_state(false); |
| 223 | #endif | 230 | #endif |
