Skip to content

Commit

Permalink
fix(legacy):update reboot command (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuanhuan authored May 18, 2023
1 parent 7d3e0d4 commit b860d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legacy/intermediate_fw/trezor.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void __attribute__((noinline, noreturn, section(".data#")))
reboot_device(void) {
__disable_irq();
*STAY_IN_BOOTLOADER_FLAG_ADDR = STAY_IN_BOOTLOADER_FLAG;
SCB_AIRCR = SCB_AIRCR_VECTKEY | SCB_AIRCR_VECTRESET;
SCB_AIRCR = SCB_AIRCR_VECTKEY | SCB_AIRCR_SYSRESETREQ;
while (1)
;
}
Expand Down

0 comments on commit b860d10

Please sign in to comment.