diff --git a/platform/samd11/uart.c b/platform/samd11/uart.c index 1cdd854..dfe22ad 100644 --- a/platform/samd11/uart.c +++ b/platform/samd11/uart.c @@ -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;