aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-extras/src/macros.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-extras/src/macros.rs b/embassy-extras/src/macros.rs
index 5ce14a76d..832e76d68 100644
--- a/embassy-extras/src/macros.rs
+++ b/embassy-extras/src/macros.rs
@@ -55,6 +55,7 @@ macro_rules! peripherals {
55 if unsafe { _EMBASSY_DEVICE_PERIPHERALS } { 55 if unsafe { _EMBASSY_DEVICE_PERIPHERALS } {
56 None 56 None
57 } else { 57 } else {
58 unsafe { _EMBASSY_DEVICE_PERIPHERALS = true };
58 Some(unsafe { <Self as embassy::util::Steal>::steal() }) 59 Some(unsafe { <Self as embassy::util::Steal>::steal() })
59 } 60 }
60 }) 61 })