Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: modem_ref_helper_for_v5_3_217
Diff: src/alp_helpers.cpp
- Revision:
- 41:6f83174ffed4
- Parent:
- 38:73ad040ae741
--- a/src/alp_helpers.cpp Fri Oct 12 12:37:16 2018 +0000
+++ b/src/alp_helpers.cpp Mon Nov 26 16:42:16 2018 +0000
@@ -17,6 +17,7 @@
#include "alp.h"
+#include "kal_math.h"
//======================================================================
// alp_size
@@ -229,7 +230,15 @@
resp->meta.urc.type = *p++; // Type
resp->meta.urc.ifid = *p++; // Ifid
if (resp->meta.urc.type == ALP_URC_TYPE_LQUAL)
+ {
resp->meta.urc.per = *p++; // Per
+ }
+ else if (resp->meta.urc.type == ALP_URC_TYPE_ITF_BUSY)
+ {
+ kal_ctf_t to;
+ to.byte = *p++; // timeout
+ resp->meta.urc.per = (to.byte == 0xff) ? MAX_U32 : kal_ctf_decode(to);
+ }
break;
case ALP_OPCODE_F_DELETE:
case ALP_OPCODE_F_FLUSH: