add calibrate_line command
This commit is contained in:
parent
97749e2921
commit
0136c3d53e
3
main.py
3
main.py
@ -87,6 +87,9 @@ def ws_handler():
|
||||
# for terminating delays in code
|
||||
sumorobot.terminate = True
|
||||
#print("Got stop")
|
||||
elif data == b"calibrate_line":
|
||||
sumorobot.calibrate_line()
|
||||
#print("Got calibrate")
|
||||
elif b"Gone" in data:
|
||||
print("Server said 410 Gone, attempting to reconnect...")
|
||||
conn = uwebsockets.connect(url)
|
||||
|
Loading…
Reference in New Issue
Block a user