mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-02 04:42:33 +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 (
|
if (
|
||||||
cache_time_ms
|
cache_time_ms
|
||||||
and last_unlock
|
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()
|
and config.is_unlocked()
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user