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

boot: fix unsuccessful PIN attempt label

This commit is contained in:
Jan Pochyla 2018-02-27 21:50:49 +01:00
parent 20ca86229c
commit f4c1bfda22

View File

@ -4,13 +4,13 @@ from apps.common.request_pin import request_pin
async def bootscreen():
label = None
while True:
try:
if not config.has_pin():
config.unlock(pin_to_int(''), show_pin_timeout)
return
await lockscreen()
label = None
while True:
pin = await request_pin(label)
if config.unlock(pin_to_int(pin), show_pin_timeout):