Lucy Luz / Mbed 2 deprecated RwSDCard_Xml_GPS

Dependencies:   FileManager GPSGms6 SDFileSystem mbed

Fork of 2545_SD_Card by Craig Evans

Revision:
4:aa7ac2ac6913
Parent:
1:f911149acd35
Child:
6:a05ec997c496
--- a/GPSGms6.cpp	Fri May 06 20:23:08 2016 +0000
+++ b/GPSGms6.cpp	Mon May 09 08:59:23 2016 +0000
@@ -40,9 +40,11 @@
     }
     else if (buf[buf_index] == ','){
         status = GPS_Status_Empty;
+        memset(ret_value,' ', section_size);
     }
     else{
         unsigned int idx;
+//        printf("\r\n state = %d =",state);
         for(idx = 0;idx < section_size;idx++)
         {
             ret_value[idx] = buf[buf_index + idx];
@@ -148,6 +150,10 @@
     m_available = false;
     
     serial_gps.baud(9600);
+    
+}
+void GPSGms6::start_GPS()
+{
     serial_gps.attach(&byte_callback);
 }
 GPRMC_Data_TypeDef GPSGms6::latestGPRMC()