diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index aee91f803..dc2093c38 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs @@ -131,6 +131,8 @@ where } pub fn free(self) -> (T, T::Interrupt, Pins) { + // Wait for the peripheral to be disabled from the ISR. + while self.instance.enable.read().enable().is_enabled() {} (self.instance, self.irq, self.pins) }