Skip to content

Commit

Permalink
fix detection of write access
Browse files Browse the repository at this point in the history
  • Loading branch information
favalex committed Mar 30, 2019
1 parent 0fc1a94 commit d075aa8
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 @@ -43,7 +43,7 @@ def endianness(self):

@property
def write(self):
return bool(self.values_to_write)
return any(x is not None for x in self.values_to_write)

def size(self):
"""Number of registers"""
Expand Down

0 comments on commit d075aa8

Please sign in to comment.