From b4ad57d52d975600ce10a42506fdb271cdda916c Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 29 Apr 2024 17:25:02 -0500 Subject: [PATCH] Separate scanning bypass --- run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index bd71481..5ecb836 100755 --- a/run.py +++ b/run.py @@ -32,6 +32,7 @@ from uptime import uptime # set to false to run without real hardware for development real = False +skip_scanning = True mbconn = None config = None @@ -447,8 +448,7 @@ def mainloop_server(pool): #fprint("Not triggering LED loop: no ring animation") if mode == "Startup": - real = False - if not real: + if not real or skip_scanning: counter = 54 if counter < 54: @@ -530,9 +530,9 @@ def mainloop_server(pool): while len(tmp) < 54: tmp.append(False) # must have 54 entries - if not real: + if not real or skip_scanning: cable_list = tmp # comment out for real demo - real = True + for idx in range(len(cable_list)): cable_list_state.append(True)