Exportable version of WizziLab's modem driver.
Revision 67:e458db8402dc, committed 2021-10-29
- Comitter:
- marin_wizzi
- Date:
- Fri Oct 29 13:54:43 2021 +0000
- Parent:
- 66:369ed528d367
- Commit message:
- had to be commited for Scanner test
Changed in this revision
src/modem_ref.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/src/modem_ref.cpp Thu Oct 28 13:27:45 2021 +0000 +++ b/src/modem_ref.cpp Fri Oct 29 13:54:43 2021 +0000 @@ -190,13 +190,21 @@ id = r.meta.tag.id; eop = r.meta.tag.eop; - if (NULL == g_modem.user[id].cb) + if (MAX_USER_NB <= id) + { + PRINT("WARNING: NO Callback for ID %d\n", id); + alp_payload_print(alp); + alp_payload_free(alp); + break; + } + else if (NULL == g_modem.user[id].cb) { PRINT("WARNING: NULL Callback for ID %d\n", id); alp_payload_print(alp); alp_payload_free(alp); break; } + //ASSERT(g_modem.user[id].cb != NULL, "ASSERT: NULL Callback for ID %d\n", id); if (g_modem.user[id].alp_rsp)