# HG changeset patch # User Lolitech # Date 1275657087 -7200 # Node ID b155ada1c14a159612c954a51e794fb3300107c6 # Parent 1ad4e7f1e89e48b6b4056adf9c271773344a043b Removed PLCprint, not existing in LPC connector context. diff -r 1ad4e7f1e89e -r b155ada1c14a connectors/LPC/LPCAppObject.py --- a/connectors/LPC/LPCAppObject.py Fri Jun 04 14:59:11 2010 +0200 +++ b/connectors/LPC/LPCAppObject.py Fri Jun 04 15:11:27 2010 +0200 @@ -45,11 +45,9 @@ return None def StartPLC(self, debug=False): - PLCprint("StartPLC") self.HandleSerialTransaction(STARTTransaction()) def StopPLC(self): - PLCprint("StopPLC") self.HandleSerialTransaction(STOPTransaction()) def ResetPLC(self): @@ -62,7 +60,6 @@ def MatchMD5(self, MD5): data = self.HandleSerialTransaction(GET_PLCIDTransaction()) - print "PLCINFO",data return data[:32] == MD5 class IEC_STRING(ctypes.Structure): @@ -145,13 +142,13 @@ ctypes.POINTER(c_type)).contents)) offset += ctypes.sizeof(c_type) else: - if c_type is None: - PLCprint("Debug error - " + iectype + " not supported !") - if offset >= size: - PLCprint("Debug error - buffer too small !") + #if c_type is None: + #PLCprint("Debug error - " + iectype + " not supported !") + #if offset >= size: + #PLCprint("Debug error - buffer too small !") break if offset and offset == size: return self.PLCStatus, tick.value, res - PLCprint("Debug error - wrong buffer unpack !") + #PLCprint("Debug error - wrong buffer unpack !") return self.PLCStatus, None, None