embassy-stm32: Fix bug where USART idle flag could end a read
prematuraly
This commit is contained in:
parent
4e61d83555
commit
49e1091309
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// Idle line
|
||||||
|
|
||||||
// stop dma transfer
|
// stop dma transfer
|
||||||
|
|
Loading…
Reference in a new issue