projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7956a
)
Fix up serial debug output
author
Keith Packard
<keithp@keithp.com>
Sat, 18 Jul 2009 05:10:43 +0000
(22:10 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 18 Jul 2009 05:10:43 +0000
(22:10 -0700)
src/ao_serial.c
patch
|
blob
|
history
diff --git
a/src/ao_serial.c
b/src/ao_serial.c
index f2f5e69736e6540f07572d90b9ba45a163337059..7bc11b979ac38137abd5e62c4a263711c5f097bf 100644
(file)
--- 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;