Clear error status bits in UART driver

This commit is contained in:
Alex Taradov 2022-04-20 19:27:59 -07:00
parent ef750670d2
commit fda243753d

View File

@ -183,6 +183,8 @@ void UART_SERCOM_IRQ_HANDLER(void)
int wr = (uart_rx_fifo.wr + 1) % UART_BUF_SIZE;
int state = 0;
UART_SERCOM->USART.STATUS.reg = status;
if (status & SERCOM_USART_STATUS_BUFOVF)
state |= USB_CDC_SERIAL_STATE_OVERRUN;