mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
bootloader+firmware: call shutdown instead of inf-loop after main is finished
This commit is contained in:
parent
abf7f822b8
commit
6e51ee251f
@ -281,7 +281,7 @@ int main(void)
|
|||||||
// start the bootloader if user touched the screen or no firmware installed
|
// start the bootloader if user touched the screen or no firmware installed
|
||||||
if (touched || !vendor_parse_header((const uint8_t *)FIRMWARE_START, &vhdr)) {
|
if (touched || !vendor_parse_header((const uint8_t *)FIRMWARE_START, &vhdr)) {
|
||||||
if (!bootloader_loop()) {
|
if (!bootloader_loop()) {
|
||||||
shutdown();
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ reset_handler:
|
|||||||
// enter the application code
|
// enter the application code
|
||||||
bl main
|
bl main
|
||||||
|
|
||||||
// loop forever if the application code returns
|
b shutdown
|
||||||
b .
|
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
@ -36,7 +36,6 @@ reset_handler:
|
|||||||
// enter the application code
|
// enter the application code
|
||||||
bl main
|
bl main
|
||||||
|
|
||||||
// loop forever if the application code returns
|
b shutdown
|
||||||
b .
|
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
Loading…
Reference in New Issue
Block a user