From e7c63a09e4ee2273586df1fd05a8a9825b15b773 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Thu, 1 Apr 2021 17:29:58 -0400 Subject: [PATCH] Mark peripherals as taken --- embassy-extras/src/macros.rs | 1 + 1 file changed, 1 insertion(+) 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 { if unsafe { _EMBASSY_DEVICE_PERIPHERALS } { None } else { + unsafe { _EMBASSY_DEVICE_PERIPHERALS = true }; Some(unsafe { ::steal() }) } })