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

[no changelog] refactor(core): Use utime.ticks_diff in verify_user_pin

This commit is contained in:
naiyoma 2024-03-11 01:44:52 +03:00 committed by Andrew Kozlik
parent 5eca32751f
commit d76829f817

View File

@ -97,7 +97,7 @@ async def verify_user_pin(
if (
cache_time_ms
and last_unlock
and utime.ticks_ms() - last_unlock <= cache_time_ms
and utime.ticks_diff(utime.ticks_ms(), last_unlock) <= cache_time_ms
and config.is_unlocked()
):
return