mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-31 01:41:18 +00:00
core: start USB after booting apps
This prevents a race condition where sometimes an Initialize message could arrive before the homescreen was fully booted -- and Recovery homescreen would cancel it as part of its bootup sequence.
This commit is contained in:
parent
70f67883c5
commit
ffa7790ed5
@ -60,12 +60,13 @@ def _boot_apps() -> None:
|
||||
workflow.start_default()
|
||||
|
||||
|
||||
_boot_apps()
|
||||
|
||||
# initialize the wire codec
|
||||
wire.setup(usb.iface_wire)
|
||||
if __debug__:
|
||||
wire.setup(usb.iface_debug, use_workflow=False)
|
||||
|
||||
_boot_apps()
|
||||
loop.run()
|
||||
|
||||
# loop is empty. That should not happen
|
||||
|
Loading…
Reference in New Issue
Block a user