summaryrefslogtreecommitdiff
path: root/src/sms_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sms_list.c')
-rw-r--r--src/sms_list.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sms_list.c b/src/sms_list.c
index 2c39aa8..7f246be 100644
--- a/src/sms_list.c
+++ b/src/sms_list.c
@@ -283,14 +283,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) {
- 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 (is_telit_3gpp2_format()) {
+ 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);
}
@@ -499,8 +499,8 @@ int sms_list(int argc, char **argv)
return false;
}
- // LNA7 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND
- if (is_quectel_dual_sms_format()) {
+ // LNA7/LNA7D/L4G1 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND
+ if (is_quectel_dual_format()) {
int tmp;
tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP);
if (tmp == 0) {