diff options
author | Brandon Bayer <bbayer@multitech.com> | 2015-10-26 14:58:43 -0500 |
---|---|---|
committer | Brandon Bayer <bbayer@multitech.com> | 2015-11-06 13:49:06 -0600 |
commit | be01eb8a87f1582b1c15ec4e09a9a66770da87c5 (patch) | |
tree | d2044a650d334dca4aa2efb2521e3ecf887ac86b /src/sms_list.c | |
parent | ab80a82e2e0f5ea7cdef0394f80e69b377fab779 (diff) | |
download | sms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.tar.gz sms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.tar.bz2 sms-utils-be01eb8a87f1582b1c15ec4e09a9a66770da87c5.zip |
feat: sms support for CE910-DUAL, DE910-DUAL, LE910-SVG0.0.8
- PDU is used for everything except LE910-SVG sending
- a bug in radio requires radio reboot to send more than 1 PDU sms
Diffstat (limited to 'src/sms_list.c')
-rw-r--r-- | src/sms_list.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sms_list.c b/src/sms_list.c index 0ccec15..dcad3fe 100644 --- a/src/sms_list.c +++ b/src/sms_list.c @@ -279,7 +279,14 @@ static int list_info_callback(char *buf, size_t len, void *data) msg = list_entry(list_info->msg_list.prev, typeof(*msg), list); if (msg->len > 0) { - err = pdu_decode(buf, &msg->pdu); + if (isCdmaTypeModel()) { + log_debug("using CDMA pdu decoding"); + err = pdu_decode_cdma(buf, &msg->pdu); + } + else { + log_debug("using GSM pdu decoding"); + err = pdu_decode(buf, &msg->pdu); + } if (err < 0) { log_warning("pdu decode failed: %d", err); } |