aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/common/avr/suspend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index dfa1af273..3d4a48439 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -19,7 +19,7 @@
19 #include "audio.h" 19 #include "audio.h"
20#endif /* AUDIO_ENABLE */ 20#endif /* AUDIO_ENABLE */
21 21
22#ifdef RGBLIGHT_SLEEP 22#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
23 #include "rgblight.h" 23 #include "rgblight.h"
24#endif 24#endif
25 25
@@ -112,7 +112,7 @@ static void power_down(uint8_t wdto)
112 // This sometimes disables the start-up noise, so it's been disabled 112 // This sometimes disables the start-up noise, so it's been disabled
113 // stop_all_notes(); 113 // stop_all_notes();
114 #endif /* AUDIO_ENABLE */ 114 #endif /* AUDIO_ENABLE */
115#ifdef RGBLIGHT_SLEEP 115#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
116#ifdef RGBLIGHT_ANIMATIONS 116#ifdef RGBLIGHT_ANIMATIONS
117 rgblight_timer_disable(); 117 rgblight_timer_disable();
118#endif 118#endif
@@ -188,7 +188,7 @@ void suspend_wakeup_init(void)
188 backlight_init(); 188 backlight_init();
189#endif 189#endif
190 led_set(host_keyboard_leds()); 190 led_set(host_keyboard_leds());
191#ifdef RGBLIGHT_SLEEP 191#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
192 rgblight_enable_noeeprom(); 192 rgblight_enable_noeeprom();
193#ifdef RGBLIGHT_ANIMATIONS 193#ifdef RGBLIGHT_ANIMATIONS
194 rgblight_timer_enable(); 194 rgblight_timer_enable();