From cfe8ccc6add2406b790ef8781eefffd7fd1fb32d Mon Sep 17 00:00:00 2001 From: aetilius <54146567+aetilius@users.noreply.github.com> Date: Sat, 7 Sep 2019 13:20:13 -0700 Subject: [PATCH] Correct data type for voltage resolution --- src/MQUnifiedsensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MQUnifiedsensor.h b/src/MQUnifiedsensor.h index eb820bf..ad75aaa 100644 --- a/src/MQUnifiedsensor.h +++ b/src/MQUnifiedsensor.h @@ -276,7 +276,7 @@ class MQUnifiedsensor int _pin, _type, _lecturePosInArray; double _R0; String _nameLectureRequeired; - int _VOLT_RESOLUTION = 5.0; // if 3.3v use 3.3 + float _VOLT_RESOLUTION = 5.0; // if 3.3v use 3.3 int _RLValue = 10; //Value in KiloOhms float _PPM, _RS_Calc; float _ratioInCleanAir, _sensor_volt, RS_air, _a, _b, _ratio;