embassy-stm32: Fix bug where USART idle flag could end a read prematuraly

This commit is contained in:
Guillaume MICHEL 2022-10-28 10:49:59 +02:00
parent 4e61d83555
commit 49e1091309

View File

@ -465,7 +465,7 @@ impl<'d, T: BasicInstance, RxDma> UartRx<'d, T, RxDma> {
}
}
if sr.idle() {
if enable_idle_line_detection && sr.idle() {
// Idle line
// stop dma transfer