Skip to content

Commit

Permalink
fix register unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
nmakel committed Jul 5, 2020
1 parent dc6589b commit b2ad32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdm_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _read_all(self, values, rtype):
return results

def _write(self, value, data):
address, length, rtype, dtype, vtype, label, fmt, batch = v
address, length, rtype, dtype, vtype, label, fmt, batch = value

try:
if rtype == registerType.HOLDING:
Expand Down

0 comments on commit b2ad32e

Please sign in to comment.