Debug assertion in Peripherals::steal() is removed so peripherals can be stolen in panic_fmt
This commit is contained in:
@ -1153,7 +1153,6 @@ impl Peripherals {
|
||||
}
|
||||
#[doc = r" Unchecked version of `Peripherals::take`"]
|
||||
pub unsafe fn steal() -> Self {
|
||||
debug_assert!(!DEVICE_PERIPHERALS);
|
||||
DEVICE_PERIPHERALS = true;
|
||||
Peripherals {
|
||||
CSE_PRAM: CSE_PRAM {
|
||||
|
Reference in New Issue
Block a user