mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-20 12:24:16 -04:00
Serial buffers
This commit is contained in:
parent
66662866e2
commit
3e43786dd1
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ ISR(USART0_RX_vect) {
|
||||||
LED_COM_ON();
|
LED_COM_ON();
|
||||||
if (!fifo_isfull(&uart0FIFO)) {
|
if (!fifo_isfull(&uart0FIFO)) {
|
||||||
char c = uart0_getchar_nowait();
|
char c = uart0_getchar_nowait();
|
||||||
fifo_push_locked(&uart0FIFO, c);
|
fifo_push(&uart0FIFO, c);
|
||||||
} else {
|
} else {
|
||||||
uart0_getchar_nowait();
|
uart0_getchar_nowait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue