From ad35a50fee42ad50cd535f485f71dd0e30d409f2 Mon Sep 17 00:00:00 2001 From: mptei Date: Wed, 8 Jul 2015 09:22:10 +0200 Subject: [PATCH] Avoid filtering on character stream --- firmware/app_layer_v1/uart.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/firmware/app_layer_v1/uart.c b/firmware/app_layer_v1/uart.c index cc8af1c3b..c6fecca48 100644 --- a/firmware/app_layer_v1/uart.c +++ b/firmware/app_layer_v1/uart.c @@ -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);