platforms/stm32: Ignore noise errors on USBUART

This commit is contained in:
Adam Heinrich 2018-01-13 21:11:17 +01:00
parent dd055b675e
commit f5cac4c78d
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ void USBUSART_ISR(void)
{
uint32_t err = USART_SR(USBUSART);
char c = usart_recv(USBUSART);
if (err & (USART_SR_ORE | USART_SR_FE))
if (err & (USART_SR_ORE | USART_SR_FE | USART_SR_NE))
return;
/* Turn on LED */