connectors/LPC/LPCProto.py
changeset 576 7fcdc0d3d8d9
parent 571 427bf9130d12
equal deleted inserted replaced
575:6765adf58711 576:7fcdc0d3d8d9
     7         """Exception class"""
     7         """Exception class"""
     8         def __init__(self, msg):
     8         def __init__(self, msg):
     9                 self.msg = msg
     9                 self.msg = msg
    10 
    10 
    11         def __str__(self):
    11         def __str__(self):
    12                 return "LPC communication error ! " + 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()
    17         self.TransactionLock = Lock()