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.
Dependencies: FileManager GPSGms6 SDFileSystem mbed
Fork of 2545_SD_Card by
Diff: GPSGms6.cpp
- 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()
