Fix for Wday when offsetting time
All checks were successful
Compile / Compile (push) Successful in 1m24s
All checks were successful
Compile / Compile (push) Successful in 1m24s
This commit is contained in:
parent
33dc87dfd0
commit
e91c194b98
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ void WatchFeatures::RTC::OffsetTime(tmElements_t & tm, int offsetInSeconds)
|
||||||
tm.Hour = hour;
|
tm.Hour = hour;
|
||||||
tm.Minute = minute;
|
tm.Minute = minute;
|
||||||
tm.Second = second;
|
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
|
// TODO: implement more advanced wakeup logic, i.e. > 255 seconds that are not a multiple of 60
|
||||||
|
|
Loading…
Reference in a new issue