changes
This commit is contained in:
parent
36097703cb
commit
359a0a8010
6
main.py
6
main.py
@ -61,7 +61,7 @@ class CliInteraction(UserInteraction):
|
|||||||
|
|
||||||
def badCred():
|
def badCred():
|
||||||
print("Bad credential!")
|
print("Bad credential!")
|
||||||
time.sleep(3)
|
time.sleep(2)
|
||||||
while True:
|
while True:
|
||||||
GPIO.output(14, GPIO.LOW)
|
GPIO.output(14, GPIO.LOW)
|
||||||
print("Waiting for device...")
|
print("Waiting for device...")
|
||||||
@ -185,7 +185,7 @@ while True:
|
|||||||
|
|
||||||
print("Credential authenticated!")
|
print("Credential authenticated!")
|
||||||
|
|
||||||
for i in range(10):
|
for i in range(5):
|
||||||
GPIO.output(14, GPIO.HIGH)
|
GPIO.output(14, GPIO.HIGH)
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
GPIO.output(14, GPIO.LOW)
|
GPIO.output(14, GPIO.LOW)
|
||||||
@ -195,7 +195,7 @@ while True:
|
|||||||
print()
|
print()
|
||||||
print("AUTH DATA:", result.authenticator_data)
|
print("AUTH DATA:", result.authenticator_data)
|
||||||
GPIO.output(14, GPIO.LOW)
|
GPIO.output(14, GPIO.LOW)
|
||||||
time.sleep(5)
|
time.sleep(1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
GPIO.output(14, GPIO.LOW)
|
GPIO.output(14, GPIO.LOW)
|
||||||
print("Authentication Failed!")
|
print("Authentication Failed!")
|
Loading…
Reference in New Issue
Block a user