Browse Source

fix annoying sequans warning

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
dependabot/github_actions/actions/checkout-4
Sara Damiano 2 years ago
parent
commit
daf1063344
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TinyGsmClientSequansMonarch.h

+ 1
- 1
src/TinyGsmClientSequansMonarch.h View File

@ -510,7 +510,7 @@ class TinyGsmSequansMonarch
waitResponse(10000L, GF(GSM_NL "> ")); waitResponse(10000L, GF(GSM_NL "> "));
// Translate bytes into char to be able to send them as an hex string // Translate bytes into char to be able to send them as an hex string
char char_command[2]; char char_command[2];
for (int i=0; i<len; i++) {
for (size_t i=0; i<len; i++) {
memset(&char_command, 0, sizeof(char_command)); memset(&char_command, 0, sizeof(char_command));
sprintf(&char_command[0], "%02X", reinterpret_cast<const uint8_t*>(buff)[i]); sprintf(&char_command[0], "%02X", reinterpret_cast<const uint8_t*>(buff)[i]);
stream.write(char_command, sizeof(char_command)); stream.write(char_command, sizeof(char_command));


Loading…
Cancel
Save