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:
- 42:1578f0480dcb
- Parent:
- 40:b4df548bd9d8
- Child:
- 44:8ebe6b70f932
--- a/src/d7a_modem.cpp Tue Aug 30 10:48:11 2016 +0000 +++ b/src/d7a_modem.cpp Tue Aug 30 14:51:04 2016 +0000 @@ -7,6 +7,8 @@ #include "d7a_sys.h" #include "d7a_common.h" +#define MODEM_TO (5000) + typedef struct { Thread* thread; Queue<void, 8> ready; @@ -41,7 +43,7 @@ } d7a_modem_reset(); - ASSERT(d7a_sys_ping_modem(30000), "Modem does not respond\r\n"); + //ASSERT(d7a_sys_ping_modem(30000), "Modem does not respond\r\n"); } static bool d7a_modem_wait_boot( uint32_t millisec ) @@ -104,12 +106,12 @@ if (!reset_ok) { d7a_modem_hard_reset(); - reset_ok = d7a_modem_wait_boot(5000); + 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(3000), "MODEM READY Timeout\r\n"); + ASSERT(d7a_modem_wait_ready(MODEM_TO), "MODEM READY Timeout\r\n"); IPRINT("MODEM Ready.\r\n"); }