This commit is contained in:
Eggman20339 2024-05-05 20:22:43 -04:00
parent fe222c75c1
commit 5edd9f1041

View File

@ -50,6 +50,8 @@ GPIO.setmode(GPIO.BCM)
greenLed = 14
redLed = 4
bad = False
GPIO.setup(greenLed, GPIO.OUT)
GPIO.output(greenLed, GPIO.LOW)
GPIO.setup(redLed, GPIO.OUT)
@ -67,10 +69,12 @@ class CliInteraction(UserInteraction):
def badCred():
print("Bad credential!")
bad = True
# time.sleep(2)
while True:
# GPIO.output(14, GPIO.LOW)
print("Waiting for device...")
bad = False
while True:
try:
# GPIO.output(14, GPIO.LOW)
@ -169,6 +173,8 @@ while True:
pk_neg3 = aaguid_data["pk_neg3"]
pickled = aaguid_data["pickled"]
if bad:
raise Exception
credentials = pickle.loads(pickled)