Merge pull request #11854 from AnttiKauppila/athandler_warn_fix

ATHandler build warning fixed
pull/11713/head
Martin Kojtal 2019-11-13 14:59:35 +01:00 committed by GitHub
commit d496ab567b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1606,7 +1606,7 @@ void ATHandler::write_hex_string(char *str, size_t size)
} }
char hexbuf[2]; char hexbuf[2];
for (int i = 0; i < size; i++) { for (size_t i = 0; i < size; i++) {
hexbuf[0] = hex_values[((str[i]) >> 4) & 0x0F]; hexbuf[0] = hex_values[((str[i]) >> 4) & 0x0F];
hexbuf[1] = hex_values[(str[i]) & 0x0F]; hexbuf[1] = hex_values[(str[i]) & 0x0F];
write(hexbuf, 2); write(hexbuf, 2);