Helper library to use modem_ref driver.
Dependencies: WizziCom WizziDebug ram_fs modem_ref
Dependents: D7A_Localisation D7A_1x_demo_send_file_data_and_forget D7A_1x_demo_CodeUpgradeProtocol D7A_1x_demo_LoRaWAN ... more
Diff: modem_ref_helper.cpp
- Revision:
- 48:beb06c0bdb1e
- Parent:
- 47:cf88f0f370cb
- Child:
- 49:035512e64fdd
diff -r cf88f0f370cb -r beb06c0bdb1e modem_ref_helper.cpp --- a/modem_ref_helper.cpp Wed Oct 17 09:20:58 2018 +0000 +++ b/modem_ref_helper.cpp Tue Oct 30 14:25:24 2018 +0000 @@ -17,7 +17,7 @@ void modem_print_error(uint8_t itf, int8_t error) { - if (ALP_ERR_ITF_START >= error && ALP_ERR_ITF_END <= error) + if (ALP_ERR_ITF_START >= error && ALP_ERR_ITF_END < error) { error -= ALP_ERR_ITF_START; // Interface specific error @@ -158,6 +158,9 @@ case ALP_ERR_QUERY_FAIL: // 0xF1: (Group of) Query result was false (Informative error code). PRINT("ALP_ERR_QUERY_FAIL\r\n"); break; + case ALP_ERR_ITF_NOT_SPECIFIED: + PRINT("ALP_ERR_ITF_NOT_SPECIFIED\r\n"); + break; // Other Errors case ALP_ERR_UNKNOWN: // 0x80: Unknown error