Merge pull request #2989 from MabezDev/ringbuf-reconfigure

stm32 ringbuffered usart: don't teardown during reconfigure
This commit is contained in:
Dario Nieuwenhuis 2024-05-23 10:10:57 +00:00 committed by GitHub
commit ded1f9d335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,9 +72,8 @@ impl<'d, T: BasicInstance> RingBufferedUartRx<'d, T> {
Err(err)
}
/// Cleanly stop and reconfigure the driver
/// Reconfigure the driver
pub fn set_config(&mut self, config: &Config) -> Result<(), ConfigError> {
self.teardown_uart();
reconfigure::<T>(config)
}