endpoint C207 radio support

Dependents:   mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular

Revision:
5:a8fd1fa0f0d0
Parent:
3:6acc6c8143b7
Child:
8:ad37c7157d3c
diff -r 0cc421d46a2b -r a8fd1fa0f0d0 MBEDUbloxCellRadio.cpp
--- a/MBEDUbloxCellRadio.cpp	Mon Mar 31 05:46:08 2014 +0000
+++ b/MBEDUbloxCellRadio.cpp	Mon Mar 31 18:47:26 2014 +0000
@@ -23,9 +23,7 @@
  #include "MBEDEndpoint.h"
  
  // default constructor
- MBEDUbloxCellRadio::MBEDUbloxCellRadio(ErrorHandler *error_handler, void *endpoint) {
-     this->m_error_handler = error_handler;
-     this->m_endpoint = endpoint;
+ MBEDUbloxCellRadio::MBEDUbloxCellRadio(ErrorHandler *error_handler, void *endpoint) : BaseClass(error_handler,endpoint) {
      this->m_connected = false;
      this->m_c027 = new C027();
      this->m_modem = NULL;
@@ -46,7 +44,7 @@
         if (this->m_modem == NULL) this->m_modem = new UBLOX_MODEM(NC, true, 1);
         this->m_modem->power(true);
         this->m_connected = true;
-        Thread::wait(UBLOX_CDMA_CONNECT_DELAY_MS);
+        Thread::wait(UBLOX_CDMA_DELAY_MS);
      }
      
      return this->m_connected;
@@ -60,7 +58,4 @@
          this->m_connected = false;
      }
      return !this->m_connected;
- }
- 
- // ErrorHandler
- ErrorHandler *UbloxModem::logger() { return this->m_error_handler; }
\ No newline at end of file
+ }
\ No newline at end of file