1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

feat(core): remove mandatory startup wait for models other than T2T1 and T2B1

[no changelog]
This commit is contained in:
tychovrahe 2024-05-17 15:03:04 +02:00 committed by TychoVrahe
parent 4d46e28267
commit 1be6208a02

View File

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