Commit a88a0d0b authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes warning in raspberry

Showing with 1 addition and 1 deletion
+1 -1
......@@ -43,6 +43,7 @@ class Ctl(CtlAbstract):
self.interfaces['i2c'] = busio.I2C(board.SCL, board.SDA) # noqa
except RuntimeWarning:
pass
warnings.resetwarnings()
# Extended I2C
try:
......@@ -51,7 +52,6 @@ class Ctl(CtlAbstract):
pass
except Exception as e:
self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}')
warnings.resetwarnings()
# modbus
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