diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index 4702fc9603f240548048d0817b6a266d0de2b84a..93acf8fc51fd9e215ec3b758b97114b651d7212e 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: @@ -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: