Exportable version of WizziLab's modem driver.
Diff: src/alp_helpers.cpp
- Revision:
- 37:f5424d109c6d
- Parent:
- 35:ac940cf8ebe6
- Child:
- 38:73ad040ae741
--- a/src/alp_helpers.cpp Thu Sep 06 10:41:51 2018 +0000 +++ b/src/alp_helpers.cpp Thu Oct 04 09:36:44 2018 +0000 @@ -57,7 +57,7 @@ len += ALP_LFIELD_SIZE(offset) + ALP_LFIELD_SIZE(length); break; default: - //ASSERT(false,"ASSERT: ALP: alp_size unsupported op %d\n",op); + ALP_ASSERT(false,"ASSERT: ALP: alp_size unsupported op %d\n",op); break; } return len; @@ -212,6 +212,13 @@ resp->data = p; p += resp->meta.itf.length; } + else if (op == ALP_OPCODE_RSP_EOPISTATUS) + { + resp->type = ALP_OPCODE_RSP_EOPISTATUS; + resp->meta.istatus.itf = *p++; // ITF Type + p++; // Length (always 1) + resp->meta.istatus.err = *p++; // Interface error + } else { resp->meta.status.id = *p++; // Action ID @@ -237,4 +244,3 @@ *payload = p; return bytes; } // }}} -