Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions firmware/app_layer_v1/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,7 @@ static void RXInterrupt(int uart_num) {
BYTE_QUEUE* q = &uarts[uart_num].rx_queue;
while (reg->uxsta & 0x0001) {
BYTE b = reg->uxrxreg;
if ((reg->uxsta & 0x000C) == 0) {
// there is no frame/parity err
ByteQueuePushByte(q, b);
} // Otherwise, discard
ByteQueuePushByte(q, b);
// It is OK to clear the interrupt now, since we're just about to poll for
// any remaining characters in the FIFO, so we'll never miss an interrupt.
AssignUxRXIF(uart_num, 0);
Expand Down