diff --git a/src/settings/triggers/time.cpp b/src/settings/triggers/time.cpp index 3d8d186..7d90d1c 100644 --- a/src/settings/triggers/time.cpp +++ b/src/settings/triggers/time.cpp @@ -188,6 +188,10 @@ TimeTrigger* TimeTriggerSettings::getActiveTrigger(tmElements_t &time) dayOfWeek = Sunday; else dayOfWeek = (DayOfWeek)((uint8_t)dayOfWeek / 2); + + // Set the comparison time to the end of the day, so the last + // trigger for that day will match + dayTime = 24 * 60; } while (dayOfWeek != startDayOfWeek); return nullptr;