Need to init clock for timer to work properly
All checks were successful
Compile / Compile (push) Successful in 3m44s

This commit is contained in:
Lewis Jackson 2023-05-31 04:21:19 +03:00
parent 29fa5486cb
commit 3ada2fb9a9

View file

@ -13,6 +13,10 @@ WatchyRTC::WatchyRTC()
void WatchyRTC::Init() void WatchyRTC::Init()
{ {
tmElements_t tm;
Get(tm, 0);
rtc_pcf.initClock();
Set(tm);
} }
void WatchyRTC::Get(tmElements_t & tm, int offsetInSeconds) void WatchyRTC::Get(tmElements_t & tm, int offsetInSeconds)