diff --git a/CHANGELOG.md b/CHANGELOG.md index 8340c7f..af9ddf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added ### Changed ### Removed + - Debug assertion in Peripherals::steal() is removed so peripherals can be stolen in panic_fmt. ## [0.8.0] - 2018-02-13 ### Removed - PCC dummy register was removed. These register should not be used as there are no hardware corresponding to them. diff --git a/src/lib.rs b/src/lib.rs index 236c7b6..8a0e3f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {