mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
[no changelog] refactor(core): Use utime.ticks_diff in verify_user_pin
This commit is contained in:
parent
5eca32751f
commit
d76829f817
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user