--- a/connectors/LPC/LPCAppObject.py Thu Feb 17 17:04:10 2011 +0100
+++ b/connectors/LPC/LPCAppObject.py Thu Feb 17 17:34:29 2011 +0100
@@ -31,7 +31,6 @@
self.SerialConnection = LPCAppProto(comport,#number
115200, #speed
2) #timeout
- self.HandleSerialTransaction(IDLETransaction())
def StartPLC(self, debug=False):
self.HandleSerialTransaction(STARTTransaction())
@@ -45,13 +44,13 @@
return self.PLCStatus
def GetPLCstatus(self):
- self.HandleSerialTransaction(IDLETransaction())
+ self.HandleSerialTransaction(GET_PLCIDTransaction())
return self.PLCStatus
def MatchMD5(self, MD5):
data = self.HandleSerialTransaction(GET_PLCIDTransaction())
if data is not None:
- return data[:32] == MD5
+ return data[:32] == MD5[:32]
return False
class IEC_STRING(ctypes.Structure):