Skip to content

Commit 1834324

Browse files
committed
fix __init__
1 parent 2a9f7e2 commit 1834324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_tca9548a.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ class TCA9547D_Channel(TCA9548A_Channel):
143143
behave like an I2CDevice."""
144144

145145
def __init__(self, tca: "TCA9547D", channel: int) -> None:
146+
super().__init__(tca, channel)
146147
self.tca = tca
147148
"""
148149
B3 enables/disables the mux. B2-B0 control which channel is used.
149150
ref: https://www.nxp.com/docs/en/data-sheet/PCA9547.pdf
150151
"""
151-
self.channel_switch = (channel + (1<<3)).to_bytes(1, "little")
152+
self.channel_switch = (channel + (1 << 3)).to_bytes(1, "little")
152153

153154

154155
class TCA9547D(TCA9548A):

0 commit comments

Comments
 (0)