for u-blox
Fork of C027_Support by
Diff: GPS.cpp
- Revision:
- 139:72b4265c91d1
- Parent:
- 95:8282dbbe1492
--- a/GPS.cpp Fri Aug 21 09:13:56 2015 +0000 +++ b/GPS.cpp Wed Jan 04 11:28:57 2017 +0000 @@ -28,8 +28,9 @@ return UNKNOWN | pipe->get(buf,unkn); if (nmea == WAIT && fr) return WAIT; - if (nmea > 0) + if (nmea > 0){ return NMEA | pipe->get(buf,nmea); + } // UBX protocol pipe->set(unkn); @@ -225,6 +226,7 @@ val = (val - i) / 0.6 + i; if (ch == 'S' || ch == 'W') val = -val; + return true; } return false;