new receive code works a little better

This commit is contained in:
geeksville
2020-04-30 13:50:40 -07:00
parent 22720e9f63
commit a2ba9d3c44
6 changed files with 49 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ GPS::GPS() : PeriodicTask() {}
void GPS::setup()
{
PeriodicTask::setup();
readFromRTC(); // read the main CPU RTC at first
#ifdef GPS_RX_PIN
@@ -110,7 +110,7 @@ void GPS::perhapsSetRTC(const struct timeval *tv)
#ifndef NO_ESP32
settimeofday(tv, NULL);
#else
assert(0);
DEBUG_MSG("ERROR TIME SETTING NOT IMPLEMENTED!\n");
#endif
readFromRTC();
}