We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85b1d2 commit d19c62fCopy full SHA for d19c62f
1 file changed
feeph/i2cmux/generic.py
@@ -91,7 +91,7 @@ def __exit__(self, exc_type, exc_value, exc_tb):
91
LH.debug("[%d] I²C I/O burst completed after %d ms.", id(self), elapsed_ns / (1000 * 1000))
92
# -----------------------------------------------------------------
93
# send I²C command to reset the TCA9548A?
94
- self._i2c_bus.writeto(self._tca_adr, b"\x00")
+ self._i2c_bus.writeto(self._tca_adr, bytearray([0x00]))
95
96
LH.debug("[%d] Releasing the lock on the I²C bus.", id(self))
97
self._i2c_bus.unlock()
0 commit comments