This commit is contained in:
Eggman20339 2024-05-05 19:45:58 -04:00
parent 23b09a791a
commit 3b8fe12655

View File

@ -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()