Browse Source

Merge pull request #534 from yaroshd81/fixUssd

fix bug for ussd answers over 127 chars
dependabot/github_actions/actions/checkout-4
Sara Damiano 3 years ago
committed by GitHub
parent
commit
4eedb84cd3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TinyGsmSMS.tpp

+ 2
- 2
src/TinyGsmSMS.tpp View File

@ -73,7 +73,7 @@ class TinyGsmSMS {
static inline String TinyGsmDecodeHex8bit(String& instr) { static inline String TinyGsmDecodeHex8bit(String& instr) {
String result; String result;
for (uint8_t i = 0; i < instr.length(); i += 2) {
for (uint16_t i = 0; i < instr.length(); i += 2) {
char buf[4] = { char buf[4] = {
0, 0,
}; };
@ -87,7 +87,7 @@ class TinyGsmSMS {
static inline String TinyGsmDecodeHex16bit(String& instr) { static inline String TinyGsmDecodeHex16bit(String& instr) {
String result; String result;
for (uint8_t i = 0; i < instr.length(); i += 4) {
for (uint16_t i = 0; i < instr.length(); i += 4) {
char buf[4] = { char buf[4] = {
0, 0,
}; };


Loading…
Cancel
Save