Mark peripherals as taken
This commit is contained in:
parent
1610797a14
commit
e7c63a09e4
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ macro_rules! peripherals {
|
|||
if unsafe { _EMBASSY_DEVICE_PERIPHERALS } {
|
||||
None
|
||||
} else {
|
||||
unsafe { _EMBASSY_DEVICE_PERIPHERALS = true };
|
||||
Some(unsafe { <Self as embassy::util::Steal>::steal() })
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue