Serial buffers

This commit is contained in:
Mark Qvist 2020-06-01 13:46:26 +02:00
parent 66662866e2
commit 3e43786dd1
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }