From ffa7790ed59f3f45c4520c262061ca31c382a364 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 27 May 2020 15:19:44 +0200 Subject: [PATCH] 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. --- core/src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main.py b/core/src/main.py index 68e377f5f..1826ea49c 100644 --- a/core/src/main.py +++ b/core/src/main.py @@ -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