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:
parent
9f9354a820
commit
362958f906
@ -28,7 +28,9 @@ def enforce_welcome_screen_duration() -> None:
|
||||
# Not wasting the time in emulator debug builds (debugging and development)
|
||||
if __debug__ and utils.EMULATOR:
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user