LPCconnector/LPCProto.py
changeset 45 786b12887e91
parent 0 51f5a3138405
equal deleted inserted replaced
44:a6577420a27b 45:786b12887e91
    12                 return "Exception in PLC protocol : " + str(self.msg)
    12                 return "Exception in PLC protocol : " + str(self.msg)
    13 
    13 
    14 class LPCProto:
    14 class LPCProto:
    15     def __init__(self, port, rate, timeout):
    15     def __init__(self, port, rate, timeout):
    16         # serialize access lock
    16         # serialize access lock
    17         self.TransactionLock = Lock()
       
    18         if BMZ_DBG:
    17         if BMZ_DBG:
    19             # Debugging serial stuff
    18             # Debugging serial stuff
    20             self._serialPort = serial.Serial( port, rate, timeout = timeout, writeTimeout = timeout )
    19             self._serialPort = serial.Serial( port, rate, timeout = timeout, writeTimeout = timeout )
    21             class myser:
    20             class myser:
    22                 def readline(self_):
    21                 def readline(self_):