diff --git a/script/local.py b/script/local.py index f2d896c..2cabf52 100644 --- a/script/local.py +++ b/script/local.py @@ -21,10 +21,12 @@ class RobotTCP(TcpDevice): tx = tx + msg_id + " " + msg if (len(tx)>127): raise Exception("Exceeded maximum message size") - self.getLogger().finer("TX = " + str(tx)) + self.getLogger().finer("TX = '" + str(tx)+ "'") + print "TX = '" + str(tx)+ "'" 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)) + self.getLogger().finer("RX = '" + str(rx) + "'") + print "RX = '" + str(rx) + "'" if rx[:3] != msg_id: print rx raise Exception("Received invalid message id: " + str(rx[:3]) + " - expecting:" + msg_id )