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

Fix timers for initial conversions in start() #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

BenUniqcode
Copy link

Hi
Thanks for your great library!
I spotted a small bug in start() (both versions) where you just checked if the current millis() value was greater than the delay time, instead of using a baseline of the time at which the function started. That meant these functions would never delay for the correct amount of time, and might not delay at all if start() was not called near the beginning of setup(). This could lead to wildly anomalous readings!
Cheers
Ben

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

Successfully merging this pull request may close these issues.

2 participants