Skip to content

Commit b5018fe

Browse files
committed
Clear FIDO data when the FIDO is disabled.
1 parent c2a373e commit b5018fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/src/session.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@
1818
utils.RESTART_MAIN_LOOP = False
1919

2020

21+
async def flush_fido_buffer():
22+
from trezor import io
23+
24+
while True:
25+
await loop.wait(io.SPI_FIDO_FACE | io.POLL_READ)
26+
27+
2128
if not utils.BITCOIN_ONLY and usb.ENABLE_IFACE_WEBAUTHN:
2229
import apps.webauthn
2330

2431
apps.webauthn.boot()
32+
else:
33+
loop.schedule(flush_fido_buffer())
2534

2635
if __debug__:
2736
import apps.debug

0 commit comments

Comments
 (0)