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

This commit is contained in:
Scott Powell
2025-10-30 16:45:50 +11:00
parent c4e99a841a
commit 3d9378d91e
8 changed files with 27 additions and 5 deletions

View File

@@ -548,7 +548,7 @@ public:
StdRNG fast_rng;
SimpleMeshTables tables;
MyMesh the_mesh(radio_driver, fast_rng, *new VolatileRTCClock(), tables); // TODO: test with 'rtc_clock' in target.cpp
MyMesh the_mesh(radio_driver, fast_rng, rtc_clock, tables);
void halt() {
while (1) ;
@@ -587,4 +587,5 @@ void setup() {
void loop() {
the_mesh.loop();
rtc_clock.tick();
}