projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos: Use alt_t value to hold displayed height in micropeak
[fw/altos]
/
src
/
teleshield-v0.1
/
ao_ardu_serial.c
diff --git
a/src/teleshield-v0.1/ao_ardu_serial.c
b/src/teleshield-v0.1/ao_ardu_serial.c
index 7d4dc0db83756f14dd0d7b8945b0792fced0b49c..e6e19f67b5f876defd9f1d07941ca3e8818dc703 100644
(file)
--- a/
src/teleshield-v0.1/ao_ardu_serial.c
+++ b/
src/teleshield-v0.1/ao_ardu_serial.c
@@
-23,6
+23,8
@@
ao_ardu_serial_recv(void)
char c;
for (;;) {
+ if (ao_fifo_empty(ao_serial0_rx_fifo))
+ flush();
c = ao_serial0_getchar();
putchar (c);
}
@@
-33,6
+35,5
@@
static __xdata struct ao_task ao_ardu_serial_recv_task;
void
ao_ardu_serial_init (void)
{
- ao_serial0_init();
ao_add_task(&ao_ardu_serial_recv_task, ao_ardu_serial_recv, "recv");
}