1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-30 17:21:21 +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:
matejcik 2020-05-27 15:19:44 +02:00 committed by matejcik
parent 70f67883c5
commit ffa7790ed5

View File

@ -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