diff options
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 7 | ||||
| -rw-r--r-- | tmk_core/common/chibios/suspend.c | 8 |
2 files changed, 15 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 |
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c index 14a9aecb3..38517e06f 100644 --- a/tmk_core/common/chibios/suspend.c +++ b/tmk_core/common/chibios/suspend.c | |||
| @@ -83,6 +83,10 @@ void suspend_power_down(void) { | |||
| 83 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | 83 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |
| 84 | rgblight_suspend(); | 84 | rgblight_suspend(); |
| 85 | #endif | 85 | #endif |
| 86 | |||
| 87 | #if defined(LED_MATRIX_ENABLE) | ||
| 88 | led_matrix_set_suspend_state(true); | ||
| 89 | #endif | ||
| 86 | #if defined(RGB_MATRIX_ENABLE) | 90 | #if defined(RGB_MATRIX_ENABLE) |
| 87 | rgb_matrix_set_suspend_state(true); | 91 | rgb_matrix_set_suspend_state(true); |
| 88 | #endif | 92 | #endif |
| @@ -154,6 +158,10 @@ void suspend_wakeup_init(void) { | |||
| 154 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | 158 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |
| 155 | rgblight_wakeup(); | 159 | rgblight_wakeup(); |
| 156 | #endif | 160 | #endif |
| 161 | |||
| 162 | #if defined(LED_MATRIX_ENABLE) | ||
| 163 | led_matrix_set_suspend_state(false); | ||
| 164 | #endif | ||
| 157 | #if defined(RGB_MATRIX_ENABLE) | 165 | #if defined(RGB_MATRIX_ENABLE) |
| 158 | rgb_matrix_set_suspend_state(false); | 166 | rgb_matrix_set_suspend_state(false); |
| 159 | #endif | 167 | #endif |
