Merge #1034
1034: stm32/usart: Fix bug where USART idle flag could end a `read` prematuraly r=Dirbaio a=guillaume-michel on STM32, when setting USART `detect_previous_overrun = true`, the idle flag is not cleared and could result in premature end of the `read` method. This PR fixes that. Co-authored-by: Guillaume MICHEL <guillaume@squaremind.io>
This commit is contained in:
		
						commit
						1f246d0e37
					
				@ -525,7 +525,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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user