aboutsummaryrefslogtreecommitdiff
path: root/embassy-extras/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-extras/src/macros.rs')
-rw-r--r--embassy-extras/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-extras/src/macros.rs b/embassy-extras/src/macros.rs
index e57b89ec7..5ce14a76d 100644
--- a/embassy-extras/src/macros.rs
+++ b/embassy-extras/src/macros.rs
@@ -122,7 +122,7 @@ macro_rules! std_peripherals {
122 122
123 impl Peripherals { 123 impl Peripherals {
124 pub fn take() -> Option<(Peripherals, Clocks)> { 124 pub fn take() -> Option<(Peripherals, Clocks)> {
125 match unsafe {GLOBAL_CLOCKS} { 125 match unsafe {GLOBAL_CLOCKS.take()} {
126 Some(clocks) => { 126 Some(clocks) => {
127 let dp = unsafe { pac::Peripherals::steal() }; 127 let dp = unsafe { pac::Peripherals::steal() };
128 let peripherals = Peripherals { 128 let peripherals = Peripherals {