Driver optimized for modem version 5.3.217
Dependencies: modem_ref_v5_3_217 WizziCom WizziDebug ram_fs
Revision 71:6f03605e039b, committed 2021-01-25
- Comitter:
- Jeej
- Date:
- Mon Jan 25 12:43:00 2021 +0000
- Parent:
- 70:6d605fe75dc1
- Commit message:
- Minor changes
Changed in this revision
modem_ref_helper.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6d605fe75dc1 -r 6f03605e039b modem_ref_helper.h --- a/modem_ref_helper.h Mon Jan 25 11:24:00 2021 +0000 +++ b/modem_ref_helper.h Mon Jan 25 12:43:00 2021 +0000 @@ -29,7 +29,7 @@ #define DEFAULT_ROOT_KEY {206, 87, 116, 11, 4, 30, 202, 254, 206, 87, 116, 11, 4, 30, 202, 254} #define MODEM_TIMEOUT 1000 -#define MODEM_WAIT_RESP(_s) if (!_s.try_acquire_for(MODEM_TIMEOUT)) { PRINT("Modem resp timeout line %d\n", __LINE__); } +#define MODEM_WAIT_RESP(_s) do { if (!_s.try_acquire_for(MODEM_TIMEOUT)) { PRINT("Modem resp timeout line %d\n", __LINE__); } } while(0) TYPEDEF_STRUCT_PACKED { uint8_t type;