Pathfindr / Mbed OS mbed-os-PF-UWBBEACON_v1_dev

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Revision:
36:8e359069192b
Parent:
34:4493c9f6d707
Child:
37:505ef618f06c
--- a/modem.cpp	Sun Jan 13 23:48:41 2019 +0000
+++ b/modem.cpp	Tue Jan 15 11:19:41 2019 +0000
@@ -4,7 +4,6 @@
 
 Modem::Modem(PinName pwrkey, PinName vreg_en, PinName w_disable): _pwrkey(pwrkey), _vreg_en(vreg_en), _w_disable(w_disable)
 {
-    //GLOBAL_requireSoftReset = true;  //TODO: this can be removed when uart sleep issue resolved
 }
 
 void Modem::ATsendCMD(char* cmd) 
@@ -54,7 +53,7 @@
 
 bool Modem::ATgetResponse(char terminator, uint32_t timeout) 
 {
-    memset(ATinBuffer,'/0',sizeof(ATinBuffer));
+    memset(ATinBuffer,0x00,sizeof(ATinBuffer));
     int charindex = 0;
     bool gotTerminator = false;
     Timer t;
@@ -302,7 +301,7 @@
     bool haveGPSFix = false;
     bool haveCellFix = false;
     static char locDataOut[100];
-    memset(locDataOut,'/0',sizeof(locDataOut));
+    memset(locDataOut,0x00,sizeof(locDataOut));
     Timer t;
     t.start();
     uint32_t startmillis;