diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index d853bda7..517afa38 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs @@ -177,7 +177,9 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> { } pub fn set_baudrate(self: Pin<&mut Self>, baudrate: Baudrate) { - self.inner().with(|state, _irq| { + let mut inner = self.inner(); + inner.as_mut().register_interrupt(); + inner.with(|state, _irq| { let r = U::regs(); let rt = state.timer.regs();