Disable ppi group first to avoid BufferedUarte not getting dropped properly
This commit is contained in:
parent
ee20fd4c16
commit
f501a1ba2c
1 changed files with 2 additions and 0 deletions
|
@ -646,6 +646,8 @@ mod _embedded_io {
|
|||
|
||||
impl<'a, U: UarteInstance, T: TimerInstance> Drop for BufferedUarte<'a, U, T> {
|
||||
fn drop(&mut self) {
|
||||
self._ppi_group.disable_all();
|
||||
|
||||
let r = U::regs();
|
||||
|
||||
self.timer.stop();
|
||||
|
|
Loading…
Reference in a new issue