1
1
Fork 0

added around-the-clock battery saver code

squarelines
Alina Marquardt 2016-01-17 02:44:40 +01:00
parent 8cfdb4e198
commit 163f5ce393
1 changed files with 3 additions and 1 deletions

View File

@ -472,7 +472,9 @@ void handle_tick(struct tm *t, TimeUnits units_changed) {
allow_animate = true;
if (DISABLE_ANIM) {
if (DISABLE_ANIM_START_TIME > DISABLE_ANIM_END_TIME) {
if (DISABLE_ANIM_START_TIME == DISABLE_ANIM_END_TIME) {
allow_animate = false;
} else if (DISABLE_ANIM_START_TIME > DISABLE_ANIM_END_TIME) {
// across midnight
if (ho >= DISABLE_ANIM_START_TIME || ho < DISABLE_ANIM_END_TIME) {
allow_animate = false;