1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

main: delay usb start

This commit is contained in:
Jan Pochyla 2017-08-21 13:22:44 +02:00
parent a235a6b38b
commit 2e1a249845

View File

@ -76,7 +76,6 @@ usb = io.USB(
usb.add(usb_wire)
usb.add(usb_vcp)
usb.add(usb_u2f)
usb.open()
# load applications
from apps.common import storage
@ -97,12 +96,13 @@ wallet.boot()
ethereum.boot()
fido_u2f.boot(usb_u2f)
# initialize the wire codec pipeline
# initialize the wire codec and start the USB
wire.setup(usb_wire)
usb.open()
# load default homescreen
from apps.homescreen.homescreen import layout_homescreen
# run main even loop and specify which screen is default
workflow.startdefault(layout_homescreen)
loop.run()
loop.run()