SCB::sys_reset has a DSB internally, no need to replicate
This commit is contained in:
parent
b3e74ebc34
commit
beb587ca22
@ -45,7 +45,6 @@ impl<'d, STATE: NorFlash> Handler for Control<'d, STATE> {
|
|||||||
self.firmware_state
|
self.firmware_state
|
||||||
.mark_dfu()
|
.mark_dfu()
|
||||||
.expect("Failed to mark DFU mode in bootloader");
|
.expect("Failed to mark DFU mode in bootloader");
|
||||||
cortex_m::asm::dsb();
|
|
||||||
cortex_m::peripheral::SCB::sys_reset();
|
cortex_m::peripheral::SCB::sys_reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user