Skip to content

Commit

Permalink
fix write values initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
favalex committed Mar 30, 2019
1 parent 981b016 commit a7588fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modbus_cli/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def dump(xs):
class Access:
def __init__(self, modbus_type, addresses, pack_types, values=None, names=None, presenters=None):
self.modbus_type = modbus_type
self.values_to_write = values
self.values_to_write = values or [None] * len(addresses)
self.addresses = addresses
self.pack_types = pack_types
self.names = names or [None] * len(addresses)
Expand Down

0 comments on commit a7588fd

Please sign in to comment.