mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Disable ppi group first to avoid BufferedUarte not getting dropped properly
This commit is contained in:
parent
ee20fd4c16
commit
f501a1ba2c
@ -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 New Issue
Block a user