diff --git a/script/RobotTCP.py b/script/RobotTCP.py index 57f8a76..63d9e04 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -200,10 +200,10 @@ class RobotTCP(TcpDevice, Stoppable): mode = self.eval_int("workingMode(arr)") status = int(self.get_var("arr[0]")) self._update_working_mode(mode, status) + self._update_state() except: self.working_mode = "invalid" - self.status = "invalid" - self._update_state() + self.status = "invalid" return self.working_mode def get_emergency_stop_sts(self):