Merge pull request #314 from adamheinrich/usbuart-ignore-noise
platforms/stm32: Ignore noise errors on USBUART
This commit is contained in:
commit
a9219c3616
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue