Debug assertion in Peripherals::steal() is removed so peripherals can be stolen in panic_fmt

This commit is contained in:
Kjetil Kjeka 2018-02-14 10:35:48 +01:00
parent 648cdcb8f0
commit 2c2f1d0fee
2 changed files with 1 additions and 1 deletions

View File

@ -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.

View File

@ -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 {