mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-28 17:52:28 +00:00
SCB::sys_reset has a DSB internally, no need to replicate
This commit is contained in:
parent
9cc5d8ac89
commit
ef692c5141
@ -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