![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
Diff: main.cpp
- Revision:
- 33:fa964b8b3b19
- Parent:
- 32:1e052a3e73fe
- Child:
- 35:c9c2eb8fb0a8
--- a/main.cpp Fri Jul 22 16:22:17 2016 +0000 +++ b/main.cpp Fri Jul 22 17:12:26 2016 +0000 @@ -38,6 +38,8 @@ #define MDM_DBG_AT_CMDS (1 << 0) int mdm_dbgmask = MDM_DBG_OFF; +#define WNC_WAIT_FOR_AT_CMD_MS 40 + Serial pc(USBTX, USBRX); SerialBuffered mdm(PTD3, PTD2, 128); DigitalOut led_green(LED_GREEN); @@ -94,7 +96,7 @@ int mdm_sendAtCmd(const char *cmd, const char **rsp_list, int timeout_ms) { // Per WNC wait: - wait_ms(20); + wait_ms(WNC_WAIT_FOR_AT_CMD_MS); if (cmd && strlen(cmd) > 0) { if (mdm_dbgmask & MDM_DBG_AT_CMDS) { @@ -191,7 +193,7 @@ size_t n = strlen(cmd); // Per WNC wait: - wait_ms(20); + wait_ms(WNC_WAIT_FOR_AT_CMD_MS); if (cmd && n > 0) { if (mdm_dbgmask & MDM_DBG_AT_CMDS) {