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:
- 33:760005331b4c
- Parent:
- 32:dff4858bdf37
- Child:
- 34:4493c9f6d707
--- a/modem.cpp Tue Jan 01 20:46:39 2019 +0000
+++ b/modem.cpp Thu Jan 03 10:09:38 2019 +0000
@@ -139,13 +139,12 @@
{
//CHECK WE ARE NOT ALREADY ON NETOWRK
if (!GLOBAL_registeredOnNetwork) {
-
int attempt = 0;
Timer t;
t.start();
//DISABLE AIRPLANE MODE
_w_disable = 1;
- flushSerial();
+ flushSerial();
while (attempt < maxAttempts) {
watchdogKick();
t.reset();
@@ -162,8 +161,8 @@
}
if (!GLOBAL_registeredOnNetwork) {
off(true);
- Thread::wait(500);
- on();
+ Thread::wait(1000);
+ on();
}
attempt ++;
}