Don't teardown during reconfigure

This commit is contained in:
Scott Mabin 2024-05-22 22:28:03 +01:00
parent 4e2296e344
commit 94e559eba7

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)
}