Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drv/uart/stm32f4_ll_irq: only read USARTx->SR once in IRQ handler
It appears that reading the USART SR register clears some flags. In certain cases, this would cause the interrupt handler to go into an infinite loop. By reading the SR register only once, we ensure that all flags are seen and handled properly. Issue: pybricks/support#304
- Loading branch information