diff --git a/embassy-extras/src/macros.rs b/embassy-extras/src/macros.rs index 5ce14a76..832e76d6 100644 --- a/embassy-extras/src/macros.rs +++ b/embassy-extras/src/macros.rs @@ -55,6 +55,7 @@ macro_rules! peripherals { if unsafe { _EMBASSY_DEVICE_PERIPHERALS } { None } else { + unsafe { _EMBASSY_DEVICE_PERIPHERALS = true }; Some(unsafe { ::steal() }) } })