From 7fa3aa151d5ec9a47a6cdcc987cfa79e4d71c928 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 29 Mar 2017 15:39:18 +0200 Subject: [PATCH] Closedown --- script/RobotTCP.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/RobotTCP.py b/script/RobotTCP.py index c8b54c0..67261e5 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -363,6 +363,7 @@ class RobotTCP(TcpDevice, Stoppable): self.getLogger().info(ev) self.on_event(ev) if (self.current_task is not None) and (self.get_task_status(self.current_task)[0]<0): + print "Resetting", self.get_task_status(self.current_task) self.current_task = None self._update_state() self.setCache({"powered": self.powered, @@ -382,6 +383,7 @@ class RobotTCP(TcpDevice, Stoppable): for task in (self.high_level_tasks + [program]): if (task is not None) and (self.get_task_status(task)[0]>=0): raise Exception("Ongoing high-level task: " + task) + print "Setting ", self.current_task self.current_task = program self.task_create(program, *args, **kwargs)