Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NEO-6m-GPS by
Revision 4:fa5fed5771c0, committed 2018-03-20
- Comitter:
- sofianeamazouz
- Date:
- Tue Mar 20 13:16:40 2018 +0000
- Parent:
- 3:e37fc1ccd812
- Commit message:
- gps code
Changed in this revision
| GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPS.cpp Tue Mar 20 12:46:57 2018 +0000
+++ b/GPS.cpp Tue Mar 20 13:16:40 2018 +0000
@@ -36,7 +36,7 @@
int lock;
while(1) {
-
+
getline();
// Check if it is a GPGGA msg (matches both locked and non-locked msg)
@@ -83,6 +83,7 @@
void GPS::getline()
{
while(_gps.getc() != '$');
+
// wait for the start of a line
for(int i=0; i<256; i++) {
msg[i] = _gps.getc();
