Skip to content

Commit 0f67945

Browse files
committed
fix compilation error
1 parent 6438a53 commit 0f67945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HEXBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#include "HEXBuilder.h"
21-
#include "WCharacter.h"
21+
#include <ctype.h>
2222

2323
static uint8_t hex_char_to_byte(uint8_t c) {
2424
return (c >= 'a' && c <= 'f') ? (c - ((uint8_t)'a' - 0xa))
@@ -29,7 +29,7 @@ static uint8_t hex_char_to_byte(uint8_t c) {
2929

3030
bool HEXBuilder::isHexString(const char *str, size_t len) {
3131
for (size_t i = 0; i < len; i++) {
32-
if (!isHexadecimalDigit(str[i])) {
32+
if (isxdigit(str[i]) == 0) {
3333
return false;
3434
}
3535
}

0 commit comments

Comments
 (0)