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 e9884d6 commit 2a06b3dCopy full SHA for 2a06b3d
pymodbus/payload.py
@@ -373,9 +373,9 @@ def decode_8bit_uint(self):
373
handle = make_byte_string(handle)
374
return unpack(fstring, handle)[0]
375
376
- def decode_bits(self):
+ def decode_bits(self, package_len=1):
377
"""Decode a byte worth of bits from the buffer."""
378
- self._pointer += 1
+ self._pointer += package_len
379
# fstring = self._endian + "B"
380
handle = self._payload[self._pointer - 1 : self._pointer]
381
0 commit comments