Commit 9f42b593 authored by Ivan Tyagov's avatar Ivan Tyagov

Typo.

parent 7867e377
...@@ -86,7 +86,6 @@ class CustomModbusRequest(ModbusRequest): ...@@ -86,7 +86,6 @@ class CustomModbusRequest(ModbusRequest):
self.address, self.count = struct.unpack('>HH', data) self.address, self.count = struct.unpack('>HH', data)
def execute(self, context): def execute(self, context):
print1("da"*80)
if not (1 <= self.count <= 0x7d0): if not (1 <= self.count <= 0x7d0):
return self.doException(ModbusExceptions.IllegalValue) return self.doException(ModbusExceptions.IllegalValue)
if not context.validate(self.function_code, self.address, self.count): if not context.validate(self.function_code, self.address, self.count):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment