* Fix for VolatileRTCClock wrapping around to initial synced time every 49 days

This commit is contained in:
Scott Powell committed 2025-10-30 16:45:50 +11:00
1 parent ff55635d59
commit 7ff483ab74
8 files changed
+27 -5

No files matched your search

+5
View File
@@ -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) {