From 5edd9f10417bca1373579e46e2af49f625600d23 Mon Sep 17 00:00:00 2001 From: Eggman20339 Date: Sun, 5 May 2024 20:22:43 -0400 Subject: [PATCH] changes --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index f4daf77..c989477 100644 --- a/main.py +++ b/main.py @@ -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)