diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-17 22:10:43 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-17 22:10:43 -0700 |
commit | 1150aa850f5a025b849556e32c4dddb27937d9af (patch) | |
tree | bc7ad8afd8f5cea7699d4edead9eff1c4516d1fe /src | |
parent | 2a7956a64935246475f92d44c08369e0230b676a (diff) |
Fix up serial debug output
Diffstat (limited to 'src')
-rw-r--r-- | src/ao_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_serial.c b/src/ao_serial.c index f2f5e697..7bc11b97 100644 --- a/src/ao_serial.c +++ b/src/ao_serial.c @@ -60,7 +60,7 @@ ao_serial_getchar(void) __critical ao_sleep(&ao_usart1_rx_fifo); ao_fifo_remove(ao_usart1_rx_fifo, c); if (serial_echo) { - printf("%02x\n", (uint8_t) c); + printf("%02x\n", ((int) c) & 0xff); flush(); } return c; |