* Fix for VolatileRTCClock wrapping around to initial synced time every 49 days
This commit is contained in:
1 parent
ff55635d59
commit
7ff483ab74
8 files changed
+27
-5
No files matched your search
@@ -72,6 +72,11 @@ public:
|
||||
*/
|
||||
virtual void setCurrentTime(uint32_t time) = 0;
|
||||
|
||||
/**
|
||||
* override in classes that need to periodically update internal state
|
||||
*/
|
||||
virtual void tick() { /* no op */}
|
||||
|
||||
uint32_t getCurrentTimeUnique() {
|
||||
uint32_t t = getCurrentTime();
|
||||
if (t <= last_unique) {
|
||||
|
||||
Reference in new issue
Block a user