From 2267c8ec1d21b8e0367ecdae2cb11b75553088b7 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 10 Aug 2018 13:08:26 -0500 Subject: Allow LNA3 to send messages. --- src/pdu_decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pdu_decode.c') diff --git a/src/pdu_decode.c b/src/pdu_decode.c index 5d74a2a..62b60ba 100644 --- a/src/pdu_decode.c +++ b/src/pdu_decode.c @@ -237,9 +237,9 @@ int pdu_decode_user_data(const char *pdu_str, struct pdu_info *pdu, int *nr_octe // CDMA 7-BIT ENCODING } else if (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT) { - if (!strcmp(Global.core.model, "LE910-SVG")) { + if (is_vzw_lte()) { // LE910-SVG stores data length as # of septets - log_debug("counting PDU length byte as number of septets (LE910-SVG)"); + log_debug("counting PDU length byte as number of septets (LE910-SVG/LE910-NA1/VZW)"); *nr_octets = octets_from_septets(pdu->user_data_len); } else { @@ -336,7 +336,7 @@ int pdu_decode_user_data(const char *pdu_str, struct pdu_info *pdu, int *nr_octe } //Remove padded byte for data length of 7 characters if not LE910-SVG - if (strcmp(Global.core.model, "LE910-SVG") && (pdu->user_data[i-1] == 0)) { + if (!is_vzw_lte() && (pdu->user_data[i-1] == 0)) { log_debug("Removing padded char"); i--; pdu->user_data_len--; -- cgit v1.2.3