WIP add support for i2C GPS

This commit is contained in:
geeksville committed 2020-07-10 11:43:14 -07:00
1 parent 5b07d454b1
commit 1415f2bed7
5 files changed
+45 -17

No files matched your search

+6 -2
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();