Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setRL() Float type error #37

Closed
pedrorocha014 opened this issue Sep 27, 2020 · 1 comment
Closed

setRL() Float type error #37

pedrorocha014 opened this issue Sep 27, 2020 · 1 comment

Comments

@pedrorocha014
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants