doctorames / fishtank

0 stars 0 forks source link

No correct time if not obtained at boot up #19

Closed doctorames closed 2 years ago

doctorames commented 2 years ago

If the controller is unsuccessful connecting to internet at bootup, then it will not know what time it is. Even if it is able to connect later, it will not attempt to get the time, so it will spend the rest of its uptime not knowing what time it is.

-make it know if it knows the time or not -make it try to get the time if it doesn't have it -beware the logic the calculates uptime. If it's been calculating uptime against a bogus time (0:00-o'clock), then suddenly correcting the time might mess that up

doctorames commented 2 years ago

Fixed in #20