Separate scanning bypass
This commit is contained in:
parent
72ab357dbf
commit
b4ad57d52d
8
run.py
8
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user