aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-06-20 19:07:29 -0700
committerJack Humbert <jack.humb@gmail.com>2018-06-28 22:08:26 -0400
commit526eabb6f8be7d08d7ce61613c25983e88c1e65c (patch)
tree1f40ea42c770e0349ed06ea5b0b81b91a68273da
parente448ef0b1aa55da0d35d38d7f440978579466bf6 (diff)
downloadqmk_firmware-526eabb6f8be7d08d7ce61613c25983e88c1e65c.tar.gz
qmk_firmware-526eabb6f8be7d08d7ce61613c25983e88c1e65c.zip
Make sure that both RGBLIGHT_ENABLE is defined, for RGBLIGHT_SLEEP
-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();