diff options
Diffstat (limited to 'tmk_core/common/chibios/suspend.c')
| -rw-r--r-- | tmk_core/common/chibios/suspend.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c index 5be1b7677..8c071e7a0 100644 --- a/tmk_core/common/chibios/suspend.c +++ b/tmk_core/common/chibios/suspend.c | |||
| @@ -51,9 +51,7 @@ void suspend_power_down(void) { | |||
| 51 | // shouldn't power down TPM/FTM if we want a breathing LED | 51 | // shouldn't power down TPM/FTM if we want a breathing LED |
| 52 | // also shouldn't power down USB | 52 | // also shouldn't power down USB |
| 53 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | 53 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |
| 54 | # ifdef RGBLIGHT_ANIMATIONS | ||
| 55 | rgblight_timer_disable(); | 54 | rgblight_timer_disable(); |
| 56 | # endif | ||
| 57 | if (!is_suspended) { | 55 | if (!is_suspended) { |
| 58 | is_suspended = true; | 56 | is_suspended = true; |
| 59 | rgblight_enabled = rgblight_config.enable; | 57 | rgblight_enabled = rgblight_config.enable; |
| @@ -126,9 +124,7 @@ void suspend_wakeup_init(void) { | |||
| 126 | if (rgblight_enabled) { | 124 | if (rgblight_enabled) { |
| 127 | rgblight_enable_noeeprom(); | 125 | rgblight_enable_noeeprom(); |
| 128 | } | 126 | } |
| 129 | # ifdef RGBLIGHT_ANIMATIONS | ||
| 130 | rgblight_timer_enable(); | 127 | rgblight_timer_enable(); |
| 131 | # endif | ||
| 132 | #endif | 128 | #endif |
| 133 | suspend_wakeup_init_kb(); | 129 | suspend_wakeup_init_kb(); |
| 134 | } | 130 | } |
