Commit 87f7c89e authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Tries to fix adafruit warning

Showing with 5 additions and 3 deletions
+5 -3
...@@ -44,14 +44,16 @@ class Ctl(CtlAbstract): ...@@ -44,14 +44,16 @@ class Ctl(CtlAbstract):
except RuntimeWarning: except RuntimeWarning:
pass pass
warnings.resetwarnings()
# Extended I2C # Extended I2C
try: try:
self.interfaces['i2c_ext'] = ExtendedI2C(4) # 4 is defined self.interfaces['i2c_ext'] = ExtendedI2C(4) # 4 is defined
# except RuntimeWarning: except RuntimeWarning:
# pass pass
except Exception as e: except Exception as e:
self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}') self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}')
warnings.resetwarnings()
# modbus # modbus
try: try:
......
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