vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.93k stars 715 forks source link

fix bug for ussd answers over 127 chars #534

Closed yaroshd81 closed 3 years ago

yaroshd81 commented 3 years ago

Some telecom operators respond to a ussd request longer than 128 characters. In this case, we will not be able to exit the TinyGsmDecodeHex8bit function. It is necessary to change the declaration of the increment: "uint8_t i" -> "uint16_t i" With function TinyGsmDecodeHex16bit i don't work, but for 16 bit messages we have only 64 char, if over, we never exit from this functions :)