diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index f9a9d40ba1040cfdd6f864982720e7f1374ca842..3b070785bee36c1b0ec32e45c68a165756e98c4b 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -43,7 +43,6 @@ class Ctl(CtlAbstract): self.interfaces['i2c'] = busio.I2C(board.SCL, board.SDA) # noqa except RuntimeWarning: pass - warnings.resetwarnings() # Extended I2C try: @@ -52,7 +51,7 @@ class Ctl(CtlAbstract): pass except Exception as e: self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}') - + warnings.resetwarnings() # modbus