Skip to content

No option for measurement without busywait #11

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

Open
PimSwinkelsCreative opened this issue Oct 18, 2024 · 0 comments
Open

No option for measurement without busywait #11

PimSwinkelsCreative opened this issue Oct 18, 2024 · 0 comments

Comments

@PimSwinkelsCreative
Copy link

The dataAvailable() function is public and can therefore be used to only call getObjectTemp or getDeviceTemp when new data is available (most usefull when measuring in continuous mode). Both getObjectTemp and getDeviceTemp do call clearNewData(). This means that the unit will have to busywait for the full update time.

This could be avoided by giving getObjectTemp a bool as input: waitForNewData. This is true by default, but can be set to false if the user wants to only call the fucntion if they know the data is new.

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