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.
Dependents: MTDOT-EVB-LinkCheck-AL MTDOT-BOX-EVB-Factory-Firmware-LIB-108 TelitSensorToCloud mDot_sensor_to_cloud ... more
Diff: GPSPARSER.cpp
- Revision:
- 11:73e776e41d23
- Parent:
- 10:465f9db415ea
- Child:
- 12:179474537b42
--- a/GPSPARSER.cpp Mon Jan 11 11:42:19 2016 -0600
+++ b/GPSPARSER.cpp Thu Aug 10 12:04:29 2017 -0500
@@ -91,7 +91,7 @@
_getSentenceThread.signal_wait(START_THREAD);
//printf("GPS starting\r\n");
-
+ for(int i = 0; i < 10; i++){
_gps_uart->rxClear();
_gps_uart->write(init_gps, sizeof(init_gps));
while (! _gps_uart->readable())
@@ -112,10 +112,12 @@
//printf("read char %#X\r\n", chk_char);
if (chk_char == 0x83) {
_gps_detected = true;
+ break;
}
}
}
-
+ osDelay(50);
+}
//printf("GPS detected %s\r\n", _gps_detected ? "true" : "false");
if (! _gps_detected) {