diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index 6ea597de74e273571423262ff58b45232af4df69..3bfa2af74e338b0ffbcb3775b750ac9e8af4ba29 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -44,14 +44,16 @@ class Ctl(CtlAbstract): except RuntimeWarning: pass + warnings.resetwarnings() # Extended I2C try: self.interfaces['i2c_ext'] = ExtendedI2C(4) # 4 is defined - # except RuntimeWarning: - # pass + except RuntimeWarning: + pass except Exception as e: self.exec_logger.warning(f'Could not initialize Extended I2C:\n{e}') - warnings.resetwarnings() + + # modbus try: