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 "I2c(AckCheckFailed)" error #250

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix "I2c(AckCheckFailed)" error #250

wants to merge 2 commits into from

Conversation

zrll12
Copy link

@zrll12 zrll12 commented Apr 17, 2024

It occurs when the time for it to measure is not enough

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind elaborating on your changes? Why do you call get_measurement_result before start_measurement?

Any hint of why you were getting the I2c(AckCheckFailed) Err?

@zrll12
Copy link
Author

zrll12 commented Apr 18, 2024

Do you mind elaborating on your changes? Why do you call get_measurement_result before start_measurement?

Any hint of why you were getting the I2c(AckCheckFailed) Err?

I am getting this error when the time is not enough for it to measure, and it exist a couple of times in the loop.

For the reason I don't call start_measurement before, it is just because I forgot to call it when I rewrite this code, and it is now added.

On my local test, it start_measurement is called outside the loop when I init it, but error still occurs.

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