miguel5612 / MQSensorsLib

We present a unified library for MQ sensors, this library allows to read MQ signals easily from Arduino, Genuino, ESP8266, ESP-32 boards whose references are MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ136, MQ303A, MQ309A.
MIT License
173 stars 64 forks source link

setRL() Float type error #37

Closed pedrorocha014 closed 2 years ago

pedrorocha014 commented 4 years ago

Hello how are you ? I need to set the value of the RL variable to 0.4 ohms, because my MQ7 sensor has a maximum potentiometer resistance equal to this value... But every time I set the value to 0.4 he understands it to be 0 ... is this a bug? If not how can I solve this?

error

miguel5612 commented 2 years ago

Best regards, I totally agree, RL internally was stored as Byte type and for this reason the decimal values 0.4 were close to zero, the type has been changed to float and corrected.