Doug Anson / c027_radios

Dependents:   mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular

Files at this revision

API Documentation at this revision

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) {