Merge pull request #314 from adamheinrich/usbuart-ignore-noise

platforms/stm32: Ignore noise errors on USBUART
This commit is contained in:
Gareth McMullin 2018-01-15 08:29:18 +13:00 committed by GitHub
commit a9219c3616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 */