Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
96:ea056f6be2e8
Parent:
77:f6717e4eccc4
Child:
107:f1ee3e1eb126
--- a/DeviceInfo.cpp	Mon Apr 27 10:50:21 2015 +0000
+++ b/DeviceInfo.cpp	Mon Apr 27 13:02:50 2015 +0000
@@ -3,8 +3,7 @@
 #include "DeviceInfo.h"
 #include "logging.h"
 
-DeviceInfo::DeviceInfo(MDMSerial& mdm, MDMParser::DevStatus& devStatus) :
-    _mdm(mdm)
+DeviceInfo::DeviceInfo(MDMParser::DevStatus& devStatus)
 {
     *_cellId = '\0';
     memcpy(&_devStatus, &devStatus, sizeof(MDMParser::DevStatus));
@@ -61,5 +60,6 @@
 
 bool DeviceInfo::refreshNetStatus()
 {
-    return _mdm.checkNetStatus(&_netStatus);
+    extern MDMSerial *pMdm;
+    return pMdm->checkNetStatus(&_netStatus);
 }