diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index f7291686497dea7394593636ccef8078562d99a9..f9a9d40ba1040cfdd6f864982720e7f1374ca842 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -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: @@ -50,9 +51,9 @@ class Ctl(CtlAbstract): except RuntimeWarning: pass except Exception as e: - self.exec_logger.error(f'Could not initialize Extended I2C:\n{e}') + self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}') + - warnings.resetwarnings() # modbus try: