Disable sleep 0 for scheme 0

Disable sleep 0 for scheme 0 as there is no animation required
This commit is contained in:
Andre Thomas 2019-01-26 16:43:36 +02:00 committed by GitHub
parent f5a20534f3
commit f23d18723e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -756,7 +756,11 @@ void LightAnimate(void)
}
}
else {
sleep = 0;
if (Settings.light_scheme > 0) {
sleep = 0;
} else {
sleep = Settings.sleep;
}
switch (Settings.light_scheme) {
case LS_POWER:
LightSetDimmer(Settings.light_dimmer);