From 0136c3d53ebaa09211424d0d990dcd43c9d35d51 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Sat, 13 Jan 2018 16:19:27 +0100 Subject: [PATCH] add calibrate_line command --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 1239caf..ac66e54 100644 --- a/main.py +++ b/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)