Browse Source

micronmea: was using global rtc_clock to sync instead of _clock

pull/348/head
Florent 1 year ago
parent
commit
c42e414a09
  1. 2
      src/helpers/sensors/MicroNMEALocationProvider.h

2
src/helpers/sensors/MicroNMEALocationProvider.h

@ -98,7 +98,7 @@ public :
next_check = millis() + 1000;
if (_time_sync_needed && time_valid > 2) {
if (_clock != NULL) {
rtc_clock.setCurrentTime(getTimestamp());
_clock.setCurrentTime(getTimestamp());
_time_sync_needed = false;
}
}

Loading…
Cancel
Save