diff options
| author | Ian McIntyre <[email protected]> | 2021-04-01 17:29:58 -0400 |
|---|---|---|
| committer | Ian McIntyre <[email protected]> | 2021-04-01 18:00:32 -0400 |
| commit | e7c63a09e4ee2273586df1fd05a8a9825b15b773 (patch) | |
| tree | 470cee71732e3c6c8437bda598349c21eb8ed37a /embassy-extras/src | |
| parent | 1610797a14ab8a61eab4acae5046efb388741785 (diff) | |
Mark peripherals as taken
Diffstat (limited to 'embassy-extras/src')
| -rw-r--r-- | embassy-extras/src/macros.rs | 1 |
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 | }) |
