diff --git a/rp2040-hal/examples/gpio_irq_example.rs b/rp2040-hal/examples/gpio_irq_example.rs index f3f44e5..b3adb32 100644 --- a/rp2040-hal/examples/gpio_irq_example.rs +++ b/rp2040-hal/examples/gpio_irq_example.rs @@ -157,6 +157,7 @@ fn main() -> ! { #[interrupt] fn IO_IRQ_BANK0() { + // The `#[interrupt]` attribute covertly converts this to `&'static mut Option` static mut LED_AND_BUTTON: Option = None; // This is one-time lazy initialisation. We steal the variables given to us