Disable ppi group first to avoid BufferedUarte not getting dropped properly

This commit is contained in:
Linus Harberg 2023-05-26 16:40:10 +02:00
parent ee20fd4c16
commit f501a1ba2c

View File

@ -646,6 +646,8 @@ mod _embedded_io {
impl<'a, U: UarteInstance, T: TimerInstance> Drop for BufferedUarte<'a, U, T> { impl<'a, U: UarteInstance, T: TimerInstance> Drop for BufferedUarte<'a, U, T> {
fn drop(&mut self) { fn drop(&mut self) {
self._ppi_group.disable_all();
let r = U::regs(); let r = U::regs();
self.timer.stop(); self.timer.stop();