9
0
Fork 0

add calibrate_line command

This commit is contained in:
Silver Kuusik 2018-01-13 16:19:27 +01:00
parent 97749e2921
commit 0136c3d53e
1 changed files with 3 additions and 0 deletions

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)