soft_reset: rm unreachable!

smoltcp
Astro 2019-05-31 00:19:20 +02:00
parent bf4f5108f4
commit acf995d7da
2 changed files with 2 additions and 4 deletions

View File

@ -95,7 +95,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
while !uart.tx_fifo_empty() {} while !uart.tx_fifo_empty() {}
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset()); slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
unreachable!() loop {}
} }
#[no_mangle] #[no_mangle]

View File

@ -209,13 +209,11 @@ impl RegisterBlock {
} }
/// Perform a soft reset /// Perform a soft reset
pub fn soft_reset(&mut self) -> ! { pub fn soft_reset(&mut self) {
self.pss_rst_ctrl.write( self.pss_rst_ctrl.write(
PssRstCtrl::zeroed() PssRstCtrl::zeroed()
.soft_rst(true) .soft_rst(true)
); );
unreachable!()
} }
} }