-
Notifications
You must be signed in to change notification settings - Fork 108
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
Issue calling readLightLevel immediately after setMTReg #59
Comments
The Example code:
Result (@~800lx light) - my comments after the hash marks
Maybe configure() should add a delay also for CONTINUOUS modes (and not just for ONE_TIME modes)? /Bjarne |
I'm happy to receive pull requests if you would like to propose a fix? With so many other things on the go it's hard for me to find the time. |
I understand. In order to do this "right" I would suggest to keep a "reset_time" with the object, so that a new/updated measurement can be taken only whenever the module is ready to deliver it. This would impact the I would not actually implement changes on this magnitude without consulting with the original author (you) in order to assert that it is a way, which you would approve for the module. |
|
a call of Line 162 in 37068ca
But maybe I missed something? |
The
readLightLevel
function returns an inconsistent number if it's called right after callingsetMTreg
when the mode is ONE_SHOT.setMTreg
hasdelay_ms
when the mode is CONTINUOUS but not ONE_SHOT, and this inconsistent behavior doesn't happen in CONTINUOUS modes.This issue was originally raised in #57.
The text was updated successfully, but these errors were encountered: