Make sleep for light scheme0 optional

Make sleep for light scheme0 optional with compile directive (enabled by default)
This commit is contained in:
Andre Thomas 2019-02-18 08:21:57 +02:00 committed by GitHub
parent cee9fee756
commit 5b71095e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -896,7 +896,11 @@ void LightAnimate(void)
}
}
else {
#ifdef PWM_LIGHTSCHEME0_IGNORE_SLEEP
sleep = (LS_POWER == Settings.light_scheme) ? Settings.sleep : 0; // If no animation then use sleep as is
#else
sleep = 0;
#endif // PWM_LIGHTSCHEME0_IGNORE_SLEEP
switch (Settings.light_scheme) {
case LS_POWER:
LightSetDimmer(Settings.light_dimmer);