fix arguable bug caught as warning by LLVM embedded toolchain for ARM 14.0.0

This commit is contained in:
graham sanderson 2024-07-17 15:46:35 -05:00 committed by Liam Fraser
parent 23c9353cd8
commit 0d72f153cf

View File

@ -398,7 +398,7 @@ static void dump_str_line(uint8_t const* buf, uint16_t count) {
tu_printf(" |");
// each line is 16 bytes
for (uint16_t i = 0; i < count; i++) {
const char ch = buf[i];
int ch = buf[i];
tu_printf("%c", isprint(ch) ? ch : '.');
}
tu_printf("|\r\n");