diff --git a/esp-hal/src/timer/systimer.rs b/esp-hal/src/timer/systimer.rs index c27542c0b2..37db1444f6 100644 --- a/esp-hal/src/timer/systimer.rs +++ b/esp-hal/src/timer/systimer.rs @@ -1049,7 +1049,7 @@ mod asynch { interrupt::enable(interrupt, handler.priority()).unwrap(); } - alarm.set_interrupt_handler(target0_handler); + alarm.set_interrupt_handler(handler); alarm.enable_interrupt(true);