boot: fix unsuccessful PIN attempt label
This commit is contained in:
parent
20ca86229c
commit
f4c1bfda22
|
@ -4,13 +4,13 @@ from apps.common.request_pin import request_pin
|
||||||
|
|
||||||
|
|
||||||
async def bootscreen():
|
async def bootscreen():
|
||||||
label = None
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
if not config.has_pin():
|
if not config.has_pin():
|
||||||
config.unlock(pin_to_int(''), show_pin_timeout)
|
config.unlock(pin_to_int(''), show_pin_timeout)
|
||||||
return
|
return
|
||||||
await lockscreen()
|
await lockscreen()
|
||||||
|
label = None
|
||||||
while True:
|
while True:
|
||||||
pin = await request_pin(label)
|
pin = await request_pin(label)
|
||||||
if config.unlock(pin_to_int(pin), show_pin_timeout):
|
if config.unlock(pin_to_int(pin), show_pin_timeout):
|
||||||
|
|
Loading…
Reference in New Issue