From bf3d2e8a736f43b99a6805e543423d811676518e Mon Sep 17 00:00:00 2001 From: Brandon Bayer Date: Tue, 19 Jan 2016 13:29:10 -0600 Subject: fix: special characters like @ $ not working on CDMA radios --- src/pdu_decode.c | 5 ++--- src/pdu_encode.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pdu_decode.c b/src/pdu_decode.c index 934aef5..d6ad385 100644 --- a/src/pdu_decode.c +++ b/src/pdu_decode.c @@ -309,9 +309,8 @@ int pdu_decode_user_data(const char *pdu_str, struct pdu_info *pdu, int *nr_octe pdu->user_data[i] = '\0'; } - //Only for 7-bit character sets - if ((pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) || - (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT)) { + //Only for GSM 7-bit character set + if (pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) { int read = 0; int store = 0; diff --git a/src/pdu_encode.c b/src/pdu_encode.c index f0d8c96..ce62ee8 100644 --- a/src/pdu_encode.c +++ b/src/pdu_encode.c @@ -183,9 +183,8 @@ int pdu_encode_user_data(char *pdu_str, size_t len, struct pdu_info *pdu, int *n } - //Convert to GSM character set, Only for 7-bit character sets - if ((pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) || - (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT)) { + //Convert to GSM character set, Only for 7-bit character set + if (pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) { int read = 0; int store = 0; char initial_user_data[PDU_UD_7BIT_MAX]; -- cgit v1.2.3