summaryrefslogtreecommitdiff
path: root/tmk_core/common/avr
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 /tmk_core/common/avr
parente448ef0b1aa55da0d35d38d7f440978579466bf6 (diff)
Make sure that both RGBLIGHT_ENABLE is defined, for RGBLIGHT_SLEEP
Diffstat (limited to 'tmk_core/common/avr')
-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 dfa1af273c..3d4a48439b 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -19,7 +19,7 @@
#include "audio.h"
#endif /* AUDIO_ENABLE */
-#ifdef RGBLIGHT_SLEEP
+#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
#include "rgblight.h"
#endif
@@ -112,7 +112,7 @@ static void power_down(uint8_t wdto)
// This sometimes disables the start-up noise, so it's been disabled
// stop_all_notes();
#endif /* AUDIO_ENABLE */
-#ifdef RGBLIGHT_SLEEP
+#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
#ifdef RGBLIGHT_ANIMATIONS
rgblight_timer_disable();
#endif
@@ -188,7 +188,7 @@ void suspend_wakeup_init(void)
backlight_init();
#endif
led_set(host_keyboard_leds());
-#ifdef RGBLIGHT_SLEEP
+#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
rgblight_enable_noeeprom();
#ifdef RGBLIGHT_ANIMATIONS
rgblight_timer_enable();