equal
deleted
inserted
replaced
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() |