Library for ublox neo 6m
Diff: GPS.cpp
- Revision:
- 1:380b615d1237
- Parent:
- 0:8f2e256775d7
diff -r 8f2e256775d7 -r 380b615d1237 GPS.cpp --- a/GPS.cpp Mon May 04 03:41:27 2015 +0000 +++ b/GPS.cpp Fri Nov 29 19:59:45 2019 +0000 @@ -63,7 +63,8 @@ */ // if (sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%*d,%*d, %*f,%*f,%*f,%*f,%*f,%*f,%d ", &time, &latitude, &ns, &longitude, &ew, &lock) >= 1) { - if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d", &time, &latitude, &ns, &longitude, &ew, &lock) >= 1) { + if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c,%f", &time, &latitude, &ns, &longitude, &ew, &lock, &sats, &hdop, &alt, &unit, &geoid) >= 1) { + // if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d", &time, &latitude, &ns, &longitude, &ew, &lock) >= 1) { if (!lock) {