diff --git a/script/RobotTCP.py b/script/RobotTCP.py index afef45f..b122632 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -354,9 +354,8 @@ class RobotTCP(TcpDevice, Stoppable): if self.current_task is not None: print "Ongoing task: " + self.current_task - print self.current_task if (not self.settled) or (self.current_task is not None): self.setState(State.Busy) - if not self.empty: self.setState(State.Paused) + elif not self.empty: self.setState(State.Paused) else: self.setState(State.Ready) def doUpdate(self):