diff --git a/esp-hal/src/timer/systimer.rs b/esp-hal/src/timer/systimer.rs index 9506a1e3bdf..48838889dc0 100644 --- a/esp-hal/src/timer/systimer.rs +++ b/esp-hal/src/timer/systimer.rs @@ -887,7 +887,7 @@ mod asynch { } impl<'a, const COMP: u8, const UNIT: u8> AlarmFuture<'a, COMP, UNIT> { - pub(crate) fn new(alarm: &'a Alarm) -> Self { + pub(crate) fn new(alarm: &'a Alarm<'a, Periodic, crate::Async, COMP, UNIT>) -> Self { alarm.clear_interrupt(); let (interrupt, handler) = match COMP {