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

[no changelog] refactor(core):Use utime.ticks_diff in src/boot.py for arithmetic operations

This commit is contained in:
naiyoma 2024-03-12 03:53:39 +03:00 committed by Andrew Kozlik
parent 9f9354a820
commit 362958f906

View File

@ -28,7 +28,9 @@ def enforce_welcome_screen_duration() -> None:
# Not wasting the time in emulator debug builds (debugging and development) # Not wasting the time in emulator debug builds (debugging and development)
if __debug__ and utils.EMULATOR: if __debug__ and utils.EMULATOR:
return return
while utime.ticks_ms() - welcome_screen_start_ms < _WELCOME_SCREEN_MS: while (
utime.ticks_diff(utime.ticks_ms(), welcome_screen_start_ms) < _WELCOME_SCREEN_MS
):
utime.sleep_ms(100) utime.sleep_ms(100)