mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
STM32F303 - Clear USART overrun flag if it gets set to prevent CPU usage
hog when using the debugger - no other real-world impact was observed.
This commit is contained in:
parent
ed321e3c8d
commit
c4ad7402ca
1 changed files with 5 additions and 0 deletions
|
@ -222,6 +222,11 @@ void usartIrqHandler(uartPort_t *s)
|
||||||
USART_ITConfig(s->USARTx, USART_IT_TXE, DISABLE);
|
USART_ITConfig(s->USARTx, USART_IT_TXE, DISABLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ISR & USART_FLAG_ORE)
|
||||||
|
{
|
||||||
|
USART_ClearITPendingBit (s->USARTx, USART_IT_ORE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void USART1_IRQHandler(void)
|
void USART1_IRQHandler(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue