diff --git a/python/raspberrypi/DFRobot_MultiGasSensor.py b/python/raspberrypi/DFRobot_MultiGasSensor.py index 729d36c..3c2bb7f 100644 --- a/python/raspberrypi/DFRobot_MultiGasSensor.py +++ b/python/raspberrypi/DFRobot_MultiGasSensor.py @@ -203,7 +203,7 @@ def __temp_correction(self, Con): # If temperature corrections not enabled, don't alter the sensor value. if self.tempSwitch != self.ON: - return 0.0 + return Con if self.gastype == DFRobot_GasType.O2: # No temperature dependency.