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.
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: modem.cpp
- Revision:
- 36:8e359069192b
- Parent:
- 34:4493c9f6d707
- Child:
- 37:505ef618f06c
diff -r d9421d57d116 -r 8e359069192b modem.cpp
--- 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;