mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +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
|
||||
if (touched || !vendor_parse_header((const uint8_t *)FIRMWARE_START, &vhdr)) {
|
||||
if (!bootloader_loop()) {
|
||||
shutdown();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,6 @@ reset_handler:
|
||||
// enter the application code
|
||||
bl main
|
||||
|
||||
// loop forever if the application code returns
|
||||
b .
|
||||
b shutdown
|
||||
|
||||
.end
|
||||
|
@ -36,7 +36,6 @@ reset_handler:
|
||||
// enter the application code
|
||||
bl main
|
||||
|
||||
// loop forever if the application code returns
|
||||
b .
|
||||
b shutdown
|
||||
|
||||
.end
|
||||
|
Loading…
Reference in New Issue
Block a user