Fix for Wday when offsetting time
All checks were successful
Compile / Compile (push) Successful in 1m24s

This commit is contained in:
Lewis Jackson 2023-06-02 00:15:59 +03:00
parent 33dc87dfd0
commit e91c194b98

View file

@ -102,6 +102,8 @@ void WatchFeatures::RTC::OffsetTime(tmElements_t & tm, int offsetInSeconds)
tm.Hour = hour;
tm.Minute = minute;
tm.Second = second;
time_t t = makeTime(tm); // make and break to calculate tm.Wday
breakTime(t, tm);
}
// TODO: implement more advanced wakeup logic, i.e. > 255 seconds that are not a multiple of 60