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

Possible arithmetic error evident with larger MTreg #86

Open
arc12 opened this issue Nov 30, 2022 · 0 comments
Open

Possible arithmetic error evident with larger MTreg #86

arc12 opened this issue Nov 30, 2022 · 0 comments

Comments

@arc12
Copy link

arc12 commented Nov 30, 2022

I ran three readings with varying MTreg values (31, default, 200).
Across a range of light levels (in the 100-500 lux range), the lux value computed for MTreg=200 was wildly different to the other cases.

This makes me suspect that there is a bug, probably involving incorrect data types and/or integer division. This could be in the calculation of the time interval (this is tentatively confirmed by injecting my own time delay).

[version 1.3.0 used on ESP8266 arduino platform]

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

1 participant