Removed PLCprint, not existing in LPC connector context.
authorLolitech
Fri, 04 Jun 2010 15:11:27 +0200
changeset 557 b155ada1c14a
parent 556 1ad4e7f1e89e
child 558 e7ce2b3f1d5d
Removed PLCprint, not existing in LPC connector context.
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