Make sure that both RGBLIGHT_ENABLE is defined, for RGBLIGHT_SLEEP

master
Drashna Jaelre 2018-06-20 19:07:29 -07:00 committed by Jack Humbert
parent e448ef0b1a
commit 526eabb6f8
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#include "audio.h" #include "audio.h"
#endif /* AUDIO_ENABLE */ #endif /* AUDIO_ENABLE */
#ifdef RGBLIGHT_SLEEP #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
#include "rgblight.h" #include "rgblight.h"
#endif #endif
@ -112,7 +112,7 @@ static void power_down(uint8_t wdto)
// This sometimes disables the start-up noise, so it's been disabled // This sometimes disables the start-up noise, so it's been disabled
// stop_all_notes(); // stop_all_notes();
#endif /* AUDIO_ENABLE */ #endif /* AUDIO_ENABLE */
#ifdef RGBLIGHT_SLEEP #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
#ifdef RGBLIGHT_ANIMATIONS #ifdef RGBLIGHT_ANIMATIONS
rgblight_timer_disable(); rgblight_timer_disable();
#endif #endif
@ -188,7 +188,7 @@ void suspend_wakeup_init(void)
backlight_init(); backlight_init();
#endif #endif
led_set(host_keyboard_leds()); led_set(host_keyboard_leds());
#ifdef RGBLIGHT_SLEEP #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
rgblight_enable_noeeprom(); rgblight_enable_noeeprom();
#ifdef RGBLIGHT_ANIMATIONS #ifdef RGBLIGHT_ANIMATIONS
rgblight_timer_enable(); rgblight_timer_enable();