diff options
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); } |