From 1f8310a6e7d0946568c8df2aafc5ae7f766ba7c9 Mon Sep 17 00:00:00 2001 From: miguel5612 Date: Sun, 20 Mar 2022 09:44:30 -0500 Subject: [PATCH] Changed type of RL internally to fix bug #37 --- src/MQUnifiedsensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MQUnifiedsensor.h b/src/MQUnifiedsensor.h index 865399d..b7590e7 100644 --- a/src/MQUnifiedsensor.h +++ b/src/MQUnifiedsensor.h @@ -51,7 +51,7 @@ class MQUnifiedsensor byte _pin; byte _firstFlag = false; float _VOLT_RESOLUTION = 5.0; // if 3.3v use 3.3 - byte _RL = 10; //Value in KiloOhms + float _RL = 10; //Value in KiloOhms byte _ADC_Bit_Resolution = 10; byte _regressionMethod = 1; // 1 -> Exponential || 2 -> Linear