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: mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular
Revision 19:0fcc7e5ff8a6, committed 2014-07-01
- Comitter:
- ansond
- Date:
- Tue Jul 01 20:13:19 2014 +0000
- Parent:
- 18:2d9bb520794c
- Child:
- 20:9572d860cb54
- Commit message:
- updates
Changed in this revision
| MBEDUbloxGPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MBEDUbloxGPS.cpp Tue Jul 01 19:28:11 2014 +0000
+++ b/MBEDUbloxGPS.cpp Tue Jul 01 20:13:19 2014 +0000
@@ -26,7 +26,8 @@
MBEDUbloxGPS *_ublox_gps_instance = NULL;
bool _ublox_gps_loop = true;
- /* threaded task
+ #ifdef ENABLE_THREADS
+ // threaded task
static void read_gps(void const *args) {
while (_ublox_gps_loop == true && _ublox_gps_instance != NULL) {
_ublox_gps_instance->update();
@@ -34,7 +35,7 @@
}
if (_ublox_gps_instance != NULL) _ublox_gps_instance->logger()->log("GPS update thread stopping...");
}
- */
+ #endif
// default constructor
MBEDUbloxGPS::MBEDUbloxGPS(ErrorHandler *error_handler, void *endpoint,void *gps) : BaseClass(error_handler,endpoint) {