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.
pull/971/head
matejcik 4 years ago committed by matejcik
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…
Cancel
Save