From f61c992a2e45fe663961e3532234e2dfe2fa3a6f Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Tue, 21 Feb 2017 12:29:51 +0100 Subject: [PATCH] Script execution --- script/local.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 95f3322..f2d896c 100644 --- a/script/local.py +++ b/script/local.py @@ -25,7 +25,8 @@ class RobotTCP(TcpDevice): if (self.trailer != None): tx = tx + self.trailer rx = self.sendReceive(tx, None, self.trailer , 0, self.timeout, self.retries) self.getLogger().finer("RX = " + str(rx)) - if rx[:3] != msg_id: + if rx[:3] != msg_id: + print rx raise Exception("Received invalid message id: " + str(rx[:3]) + " - expecting:" + msg_id ) if len(rx)<4: raise Exception("Invalid message size: " + str(len(rx)) )