From c23987327ed30534cf8677b4527aa85ece2fa7c3 Mon Sep 17 00:00:00 2001 From: oliboehm1901 <165999961+oliboehm1901@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:24:57 +0200 Subject: [PATCH] Update DFRobot_MultiGasSensor.py --- python/raspberrypi/DFRobot_MultiGasSensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.