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

Adding retry attempts for reading the temperature monitor #143

Closed
wants to merge 1 commit into from

Conversation

ryan-summers
Copy link
Member

This PR adds an I2C bus reset whenever a transaction failure is encountered while reading the RF channel temperature.

TODO:

  • Verify bus reset works around the probable hardware issue
  • Verify that other I2C errors do not occur

sda.free();
scl.free();

let i2c1 = unsafe { &*hal::stm32::I2C1::ptr() };
Copy link
Member Author

Choose a reason for hiding this comment

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

Needs safety documents

@ryan-summers
Copy link
Member Author

Closing this. The bus error was found to be a silicon errata in #128

@ryan-summers ryan-summers deleted the rs/issue-128/i2c-retry branch April 13, 2021 09:57
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.

1 participant