LPCobject writes PLC info string to stdout, for LPC composer to update
authorEdouard TISSERANT <edouard.tisserant@gmail.com>
Wed, 16 Dec 2009 14:51:28 +0100
changeset 525 e43bc748d1fe
parent 524 20141c30a160
child 528 61e6f03328de
LPCobject writes PLC info string to stdout, for LPC composer to update
connectors/LPC/LPCObject.py
--- a/connectors/LPC/LPCObject.py	Wed Dec 16 13:37:50 2009 +0100
+++ b/connectors/LPC/LPCObject.py	Wed Dec 16 14:51:28 2009 +0100
@@ -113,12 +113,9 @@
 
     def MatchMD5(self, MD5):
         data = self.HandleSerialTransaction(GET_PLCIDTransaction())
+        print "PLCINFO",data[32:]
         return data[:32] == MD5
 
-    def GetPLCInfo(self, MD5):
-        data = self.HandleSerialTransaction(GET_PLCIDTransaction())
-        return data[32:]
-
     class IEC_STRING(ctypes.Structure):
         """
         Must be changed according to changes in iec_types.h