Script execution

This commit is contained in:
gac-S_Changer
2017-02-21 12:29:51 +01:00
parent ddace86ba1
commit f61c992a2e

View File

@@ -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)) )