@@ -188,7 +188,7 @@ void AT_CellularSMS::cmt_urc()
188188{
189189 tr_debug (" CMT_URC called" );
190190 // +CMT: <oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
191- _at.consume_to_stop_tag ();
191+ ( void ) _at.consume_to_stop_tag ();
192192 // call user defined callback function
193193 if (_cb) {
194194 _cb ();
@@ -1205,27 +1205,27 @@ uint16_t AT_CellularSMS::unpack_7_bit_gsm_to_str(const char *str, int len, char
12051205 char tmp1;
12061206
12071207 if (padding_bits) {
1208- hex_str_to_char_str (str, 2 , & tmp);
1208+ hex_to_char (str, tmp);
12091209 buf[decodedCount] = gsm_to_ascii[(tmp >> padding_bits) & 0x7F ];
12101210 strCount++;
12111211 decodedCount++;
12121212 }
12131213
12141214 while (strCount < len) {
12151215 shift = (strCount - padding_bits) % 7 ;
1216- hex_str_to_char_str (str + strCount * 2 , 2 , & tmp);
1216+ hex_to_char (str + strCount * 2 , tmp);
12171217 if (shift == 0 ) {
12181218 buf[decodedCount] = gsm_to_ascii[tmp & 0x7F ];
12191219 } else if (shift == 6 ) {
1220- hex_str_to_char_str (str + (strCount - 1 ) * 2 , 2 , & tmp1);
1220+ hex_to_char (str + (strCount - 1 ) * 2 , tmp1);
12211221 buf[decodedCount] = gsm_to_ascii[(((tmp1 >> 2 )) | (tmp << 6 )) & 0x7F ];
12221222 if (decodedCount + 1 < msg_len) {
1223- hex_str_to_char_str (str + strCount * 2 , 2 , & tmp);
1223+ hex_to_char (str + strCount * 2 , tmp);
12241224 decodedCount++;
12251225 buf[decodedCount] = gsm_to_ascii[(tmp >> 1 ) & 0x7F ];
12261226 }
12271227 } else {
1228- hex_str_to_char_str (str + (strCount - 1 ) * 2 , 2 , & tmp1);
1228+ hex_to_char (str + (strCount - 1 ) * 2 , tmp1);
12291229 buf[decodedCount] = gsm_to_ascii[(((tmp1 >> (8 - shift))) | ((tmp << shift))) & 0x7F ];
12301230 }
12311231
0 commit comments