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