From 1be6208a02f876635be18c1f5956dd9c716adb43 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Fri, 17 May 2024 15:03:04 +0200 Subject: [PATCH] feat(core): remove mandatory startup wait for models other than T2T1 and T2B1 [no changelog] --- core/src/boot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/boot.py b/core/src/boot.py index 5028bdba4..cb7a8fd88 100644 --- a/core/src/boot.py +++ b/core/src/boot.py @@ -20,7 +20,13 @@ from trezor.ui.layouts.homescreen import Lockscreen from apps.common.request_pin import can_lock_device, verify_user_pin -_WELCOME_SCREEN_MS = 1000 # how long do we want to show welcome screen (minimum) +# have to use "==" over "in (list)" so that it can be statically replaced +# with the correct value during the build process +# pylint: disable-next=consider-using-in +if utils.INTERNAL_MODEL == "T2T1" or utils.INTERNAL_MODEL == "T2B1": + _WELCOME_SCREEN_MS = 1000 # how long do we want to show welcome screen (minimum) +else: + _WELCOME_SCREEN_MS = 0 def enforce_welcome_screen_duration() -> None: