Skip to content

Commit

Permalink
fix: wrong call to smbus (py3 related)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoscordino committed Jun 28, 2021
1 parent 49325b9 commit 7d375d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.3.1', # Required
version='1.3.2', # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down
2 changes: 1 addition & 1 deletion src/is31fl32xx/is31fl32xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def write_registers(self, reg_addr, values):
raise IOError(
"Writing {0} bytes from reg {1} would go over the last register".format(len(list(values)), reg_addr))

self._bus.write_i2c_block_data(self._i2c_addr, reg_addr, values)
self._bus.write_i2c_block_data(self._i2c_addr, reg_addr, list(values))

def shutdown(self, off=True):
"""shutdown()
Expand Down

0 comments on commit 7d375d1

Please sign in to comment.