add calibrate_line command

This commit is contained in:
Silver Kuusik 2018-01-13 16:19:27 +01:00
parent 97749e2921
commit 0136c3d53e

View File

@ -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)