Commit 9e5aecd2 authored by Guillaume Blanchy's avatar Guillaume Blanchy
Browse files

v2024.0.22

Showing with 7 additions and 10 deletions
+7 -10
......@@ -114,17 +114,14 @@ class Mux(MuxAbstract):
self._i2c_ext_tca = None
if self.connect:
self.soh_logger.info(colored(f'{self.model} - {self.board_id}', 'blue'))
try:
self.reset_i2c_ext_tca()
if self._i2c_ext_tca is None:
self.soh_logger.info(colored(
f'TCA9548A I2C ext ...not present','green'))
else:
if self._i2c_ext_tca is not None:
try:
self.reset_i2c_ext_tca()
self.soh_logger.info(colored(
f'TCA9548A I2C ext ({hex(self._i2c_ext_tca_address)})...OK','green'))
except Exception as e:
self.soh_logger.info(colored(f'TCA9548A I2C ext ({hex(self._i2c_ext_tca_address)})...NOT FOUND',
'red'))
except Exception as e:
self.soh_logger.info(colored(f'TCA9548A I2C ext ({hex(self._i2c_ext_tca_address)})...NOT FOUND',
'red'))
# Setup MCPs
kwargs.update({'addr2': kwargs.pop('addr2', None)})
......
......@@ -53,7 +53,7 @@ except Exception as error:
print(colored(f'Unexpected error: {error}', 'red'))
arm64_imports = None
VERSION = 'v2024.0.20'
VERSION = 'v2024.0.22'
class OhmPi(object):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment