Skip to content

Commit d19c62f

Browse files
committed
fix: send reset command as a bytearray instead of string
1 parent b85b1d2 commit d19c62f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

feeph/i2cmux/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __exit__(self, exc_type, exc_value, exc_tb):
9191
LH.debug("[%d] I²C I/O burst completed after %d ms.", id(self), elapsed_ns / (1000 * 1000))
9292
# -----------------------------------------------------------------
9393
# send I²C command to reset the TCA9548A?
94-
self._i2c_bus.writeto(self._tca_adr, b"\x00")
94+
self._i2c_bus.writeto(self._tca_adr, bytearray([0x00]))
9595
# -----------------------------------------------------------------
9696
LH.debug("[%d] Releasing the lock on the I²C bus.", id(self))
9797
self._i2c_bus.unlock()

0 commit comments

Comments
 (0)