Skip to content

Commit 6e747f6

Browse files
committed
Fix byte string written in _i2c_write_block()
1 parent b946988 commit 6e747f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_is31fl3731/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ def _i2c_write_block(self, data):
117117
# Write a buffer of data (byte array) to the specified I2C register
118118
# address.
119119
with self.i2c_device as i2c:
120-
buf = bytearray(1)
121-
buf.extend(data)
122-
i2c.write(buf)
120+
i2c.write(data)
123121

124122
def _bank(self, bank=None):
125123
if bank is None:

0 commit comments

Comments
 (0)