diff --git a/src/main.rs b/src/main.rs index 9a46a960..e60334e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! { while !uart.tx_fifo_empty() {} slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset()); - unreachable!() + loop {} } #[no_mangle] diff --git a/src/slcr.rs b/src/slcr.rs index e88e6d38..22f4442f 100644 --- a/src/slcr.rs +++ b/src/slcr.rs @@ -209,13 +209,11 @@ impl RegisterBlock { } /// Perform a soft reset - pub fn soft_reset(&mut self) -> ! { + pub fn soft_reset(&mut self) { self.pss_rst_ctrl.write( PssRstCtrl::zeroed() .soft_rst(true) ); - - unreachable!() } }