Skip to content

Commit 0906053

Browse files
committed
Improve logging messages in SIO/2 module.
1 parent 709d153 commit 0906053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sio2.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ static void sio2_poll(void) {
364364
if (!channel->rx_enabled)
365365
continue;
366366

367-
LOG_DEBUG("sio2: channel %zu: received char: %02x\n", i, c);
367+
LOG_DEBUG("sio2: channel %zu: received char: %02x (%c)\n", i, c,
368+
isprint(c) ? c : ' ');
368369

369370
// put char in RX fifo
370371
FIFO_PUSH(&channel->rx_fifo, c);

0 commit comments

Comments
 (0)