GPS GMS-6 Module

Dependents:   RwSDCard_Xml_GPS

Revision:
5:9dd9ab613497
Parent:
4:fb1cd9893eb8
Child:
7:333d46845050
--- a/GPSGms6.cpp	Wed May 18 17:22:37 2016 +0000
+++ b/GPSGms6.cpp	Wed May 18 17:28:10 2016 +0000
@@ -64,11 +64,11 @@
         /* Data not Enough to process  */
         status = GPS_Status_NotEnough;
     } 
-    else if (buf[buf_index] == ',') 
+    else if (buf[buf_index] == GPS_DELIMITER) 
     {
         /* Empty Data  */
         status = GPS_Status_Empty;
-        memset(ret_value,' ', section_size);
+        memset(ret_value,GPS_DEFAULT_DATA_VALUE, section_size);
     } 
     else 
     {
@@ -107,7 +107,7 @@
         if (state == GPS_Process_Start) 
         {
             /* Process the message   */
-            if (buf[index] == '$') 
+            if (buf[index] == GPS_MESSAGE_HEADER_PREFIX) 
             {
                 /* Found header  */
                 state = GPS_Process_Header;