embassy-stm32: Fix bug where USART idle flag could end a read
prematuraly
This commit is contained in:
parent
4e61d83555
commit
49e1091309
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user