From 0772fc978030a4e28da26fe131802c87816334ad Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 1 Mar 2017 14:52:48 +0100 Subject: [PATCH] Closedown --- script/RobotTCP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):