From 3b8fe12655019420e905b4c04966778898aa27df Mon Sep 17 00:00:00 2001 From: Eggman20339 Date: Sun, 5 May 2024 19:45:58 -0400 Subject: [PATCH] changes --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index d167ed6..3f9a37d 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ from fido2.ctap2 import Ctap2 gotAaguid = None GPIO.setmode(GPIO.BCM) GPIO.setup(14, GPIO.OUT) - +GPIO.output(14, GPIO.LOW) class CliInteraction(UserInteraction): def prompt_up(self): print("\nTouch your authenticator device now...\n") @@ -63,6 +63,7 @@ def badCred(): print("Bad credential!") time.sleep(3) while True: + GPIO.output(14, GPIO.LOW) print("Waiting for device...") while True: dev = next(CtapHidDevice.list_devices(), None) @@ -185,9 +186,9 @@ while True: for i in range(10): GPIO.output(14, GPIO.HIGH) - time.sleep(0.2) + time.sleep(0.05) GPIO.output(14, GPIO.LOW) - time.sleep(0.2) + time.sleep(0.05) print("CLIENT DATA:", result.client_data) print()