Skip to content

Commit

Permalink
i2c+usbsdmux: Some cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Fiege <cfi@pengutronix.de>
  • Loading branch information
SmithChart committed Nov 28, 2023
1 parent 99cbfb4 commit a1944f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usbsdmux/i2c_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Pca9536(I2cGpio):
"""

# The PCA9536 I2C slave Address in 7-Bit Format
_I2cAddr = 0x41
_I2cAddr = 0b100_0001

gpio_0 = 0x01
gpio_1 = 0x02
Expand All @@ -129,7 +129,7 @@ class Tca6408(I2cGpio):
"""

# The TCA6408 I2C slave Address in 7-Bit Format
_I2cAddr = 0b0100_000
_I2cAddr = 0b010_0000

gpio_0 = 0x01
gpio_1 = 0x02
Expand Down
2 changes: 2 additions & 0 deletions usbsdmux/usbsdmux.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def get_mode(self):

if val & self._select_DUT:
return "dut"

return "host"

def mode_disconnect(self, wait=True):
Expand Down Expand Up @@ -244,6 +245,7 @@ def get_mode(self):

if val & self._select_DUT:
return "dut"

return "host"

def mode_disconnect(self, wait=True):
Expand Down

0 comments on commit a1944f5

Please sign in to comment.