WIP add support for i2C GPS

This commit is contained in:
geeksville
2020-07-10 11:43:14 -07:00
parent 5b07d454b1
commit 1415f2bed7
5 changed files with 45 additions and 17 deletions

View File

@@ -269,8 +269,12 @@ void setup()
// assume NEMA at 9600 baud.
DEBUG_MSG("ERROR: No UBLOX GPS found, hoping that NEMA might work\n");
delete gps;
gps = new NEMAGPS();
gps->setup();
if(GPS::_serial_gps) {
// dumb NEMA access only work for serial GPSes)
gps = new NEMAGPS();
gps->setup();
}
}
#else
gps = new NEMAGPS();