Skip to content

Commit ccd290c

Browse files
committed
Fixed review comments
1 parent a5562e4 commit ccd290c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mirte_robot/linetrace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
is_running = False
2020

2121
def stop_mirte():
22+
global is_running
2223
process.terminate()
24+
is_running = False
2325

2426
def load_mirte_module(stepper, do_step):
2527

@@ -91,7 +93,6 @@ def message_received(client, server, message):
9193
if message == "e": #exit (stop)
9294
stepper.value = True
9395
do_step.value = False
94-
is_running = False
9596
stop_mirte()
9697

9798
server = WebsocketServer(host="0.0.0.0", port=8001, loglevel=logging.CRITICAL)

0 commit comments

Comments
 (0)