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.
Fork of d7a_1x by
Diff: src/d7a_modem.cpp
- Revision:
- 44:8ebe6b70f932
- Parent:
- 43:28202405094d
- Parent:
- 42:1578f0480dcb
- Child:
- 45:b85384e7d825
--- a/src/d7a_modem.cpp Tue Aug 30 16:59:12 2016 +0000 +++ b/src/d7a_modem.cpp Tue Aug 30 17:15:31 2016 +0000 @@ -8,6 +8,8 @@ #include "d7a_common.h" #include "d7a.h" +#define MODEM_TO (5000) + typedef struct { Thread* thread; Queue<void, 8> ready; @@ -98,18 +100,18 @@ bool reset_ok = false; g_modem_ctx.booted = false; - d7a_modem_soft_reset(); - reset_ok = d7a_modem_wait_boot(3000); + //d7a_modem_soft_reset(); + //reset_ok = d7a_modem_wait_boot(5000); if (!reset_ok) { d7a_modem_hard_reset(); - reset_ok = d7a_modem_wait_boot(3000); + reset_ok = d7a_modem_wait_boot(MODEM_TO); } ASSERT(reset_ok, "MODEM BOOT Timeout\r\n"); g_modem_ctx.booted = true; - ASSERT(d7a_modem_wait_ready(10000), "MODEM READY Timeout\r\n"); + ASSERT(d7a_modem_wait_ready(MODEM_TO), "MODEM READY Timeout\r\n"); IPRINT("MODEM Ready.\r\n"); }