Skip to content

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

2 participants