From 29b748c04d9a7252b1e89b80fc13edafad5133de Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 29 Mar 2017 16:59:53 +0200 Subject: [PATCH] Closedown --- script/RobotTCP.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/RobotTCP.py b/script/RobotTCP.py index 152c575..6607ee3 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -374,6 +374,7 @@ class RobotTCP(TcpDevice, Stoppable): self.on_event(ev) #if (self.current_task is not None) and (self.get_task_status(self.current_task)[0]<0): if int(sts[6]) < 0: + print "Resetting task=", self.current_task, " STS=" , int(sts[6]) self.current_task = None self._update_state() self.reset = False @@ -405,6 +406,7 @@ class RobotTCP(TcpDevice, Stoppable): if time.time() - start > 5000: raise Exception("Cannot start task " + task) time.sleep(0.1) + print "Setting task=", program self.current_task = program def stop_task(self):