diff --git a/embassy-std/src/lib.rs b/embassy-std/src/lib.rs index aabbe237..29f4de42 100644 --- a/embassy-std/src/lib.rs +++ b/embassy-std/src/lib.rs @@ -116,6 +116,7 @@ impl Executor { /// This function never returns. pub fn run(&'static mut self, init: impl FnOnce(Spawner)) -> ! { self.inner.set_signal_ctx(&self.signaler as *const _ as _); + self.inner.set_alarm(&StdAlarm); init(unsafe { self.inner.spawner() });