aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan McIntyre <[email protected]>2021-04-01 17:29:58 -0400
committerIan McIntyre <[email protected]>2021-04-01 18:00:32 -0400
commite7c63a09e4ee2273586df1fd05a8a9825b15b773 (patch)
tree470cee71732e3c6c8437bda598349c21eb8ed37a
parent1610797a14ab8a61eab4acae5046efb388741785 (diff)
Mark peripherals as taken
-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 })