Library is based on mlee350's library (MBed_Adafruit-GPS-Library) for Adafruit's GPS module (GlobalTop's MTK3339). Includes two CRITIAL bug fixes, as well as minor updates from Adafruit's Arduino library.

Fork of MBed_Adafruit-GPS-Library by Myron Lee

Files at this revision

API Documentation at this revision

Comitter:
hobbyguy77
Date:
Sat Jan 13 14:03:41 2018 +0000
Parent:
1:96d7d157b384
Commit message:
Renamed waitForSentence param to be a bit more intuitive.

Changed in this revision

MBed_Adafruit_GPS.cpp Show annotated file Show diff for this revision Revisions of this file
MBed_Adafruit_GPS.h Show annotated file Show diff for this revision Revisions of this file
diff -r 96d7d157b384 -r d8e1e37eea36 MBed_Adafruit_GPS.cpp
--- a/MBed_Adafruit_GPS.cpp	Sat Jan 13 13:06:46 2018 +0000
+++ b/MBed_Adafruit_GPS.cpp	Sat Jan 13 14:03:41 2018 +0000
@@ -264,7 +264,8 @@
     return 0;
 }
 
-bool Adafruit_GPS::waitForSentence(const char *wait4me, uint8_t max)
+//max = MAXWAITSENTENCE from .h file
+bool Adafruit_GPS::waitForSentence(const char *sentence, uint8_t max)
 {
     char str[20];
 
@@ -277,7 +278,7 @@
             str[19] = 0;
             i++;
 
-            if (strstr(str, wait4me))
+            if (strstr(str, sentence))
                 return true;
         }
     }
diff -r 96d7d157b384 -r d8e1e37eea36 MBed_Adafruit_GPS.h
--- a/MBed_Adafruit_GPS.h	Sat Jan 13 13:06:46 2018 +0000
+++ b/MBed_Adafruit_GPS.h	Sat Jan 13 14:03:41 2018 +0000
@@ -116,7 +116,7 @@
   bool fix;
   uint8_t fixquality, satellites;
 
-  bool waitForSentence(const char *wait, uint8_t max = MAXWAITSENTENCE);
+  bool waitForSentence(const char *sentence, uint8_t max = MAXWAITSENTENCE);
   bool LOCUS_StartLogger(void);
   bool LOCUS_ReadStatus(void);