We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a75201 commit fda815fCopy full SHA for fda815f
pymodbus/pdu/register_read_message.py
@@ -89,7 +89,7 @@ def decode(self, data):
89
:param data: The request to decode
90
"""
91
byte_count = int(data[0])
92
- if byte_count < 2 or byte_count > 246 or byte_count % 2 == 1 or byte_count != len(data) - 1:
+ if byte_count < 2 or byte_count > 252 or byte_count % 2 == 1 or byte_count != len(data) - 1:
93
raise ModbusIOException(f"Invalid response {data} has byte count of {byte_count}")
94
self.registers = []
95
for i in range(1, byte_count + 1, 2):
0 commit comments