mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
micronmea: was using global rtc_clock to sync instead of _clock
This commit is contained in:
parent
31cbf9ed0e
commit
49da6957b5
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ public :
|
||||||
next_check = millis() + 1000;
|
next_check = millis() + 1000;
|
||||||
if (_time_sync_needed && time_valid > 2) {
|
if (_time_sync_needed && time_valid > 2) {
|
||||||
if (_clock != NULL) {
|
if (_clock != NULL) {
|
||||||
rtc_clock.setCurrentTime(getTimestamp());
|
_clock.setCurrentTime(getTimestamp());
|
||||||
_time_sync_needed = false;
|
_time_sync_needed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue