Skip to content

Commit 5d1fb93

Browse files
committed
change to byte literal
1 parent 7270edc commit 5d1fb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_tca9548a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def try_lock(self):
6767

6868
def unlock(self):
6969
"""Pass thru for unlock."""
70-
self.tca.i2c.writeto(self.tca.address, bytes([0]))
70+
self.tca.i2c.writeto(self.tca.address, b'\x00')
7171
return self.tca.i2c.unlock()
7272

7373
def readfrom_into(self, address, buffer, **kwargs):

0 commit comments

Comments
 (0)