Cleanup build for NRF52 targets

This commit is contained in:
geeksville
2020-05-10 12:33:17 -07:00
parent 2fa595523f
commit 8b911aba7f
9 changed files with 194 additions and 99 deletions

View File

@@ -189,6 +189,8 @@ void setup()
readFromRTC(); // read the main CPU RTC at first (in case we can't get GPS time)
// If we know we have a L80 GPS, don't try UBLOX
#ifndef L80_RESET
// Init GPS - first try ublox
gps = new UBloxGPS();
if (!gps->setup()) {
@@ -199,6 +201,10 @@ void setup()
gps = new NEMAGPS();
gps->setup();
}
#else
gps = new NEMAGPS();
gps->setup();
#endif
service.init();