Script execution
This commit is contained in:
@@ -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)) )
|
||||
|
||||
Reference in New Issue
Block a user