Merge branch 'master' into nrf52

# Conflicts:
#	src/main.cpp
This commit is contained in:
geeksville
2020-04-26 18:34:41 -07:00
10 changed files with 175 additions and 64 deletions

View File

@@ -27,6 +27,8 @@ GPS::GPS() : PeriodicTask() {}
void GPS::setup()
{
PeriodicTask::setup();
readFromRTC(); // read the main CPU RTC at first
#ifdef GPS_RX_PIN
@@ -116,12 +118,6 @@ void GPS::perhapsSetRTC(const struct timeval *tv)
#include <time.h>
// for the time being we need to rapidly read from the serial port to prevent overruns
void GPS::loop()
{
PeriodicTask::loop();
}
uint32_t GPS::getTime()
{
return ((millis() - timeStartMsec) / 1000) + zeroOffsetSecs;