From 7d375d1b0114847e5fb5da87a9e888048b1a0f08 Mon Sep 17 00:00:00 2001 From: Matteo Scordino Date: Mon, 28 Jun 2021 13:52:56 +0100 Subject: [PATCH] fix: wrong call to smbus (py3 related) --- setup.py | 2 +- src/is31fl32xx/is31fl32xx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 613f4a0..3d20522 100644 --- a/setup.py +++ b/setup.py @@ -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: diff --git a/src/is31fl32xx/is31fl32xx.py b/src/is31fl32xx/is31fl32xx.py index 8bd4b43..efe9d8d 100644 --- a/src/is31fl32xx/is31fl32xx.py +++ b/src/is31fl32xx/is31fl32xx.py @@ -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()