embassy-stm32: Fix bug where USART idle flag could end a `read` prematuraly
@@ -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
