Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(wire): ensure i2c bus is ready#1775

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 1 commit intostm32duino:mainfromfpistm:i2c_err
Jul 29, 2022
Merged

Conversation

fpistm
Copy link
Member

@fpistmfpistm commentedJul 26, 2022
edited
Loading

Previously, i2c_master_write and i2c_master_read returned I2C_OK if first HAL call returned HAL_BUSY which was not correct.
Now make sure the i2c is ready, which guarantees a good initialization of the read or write sequence.

Validation

  • i2c scanner
  • i2c memory device (eeprom)
  • temperature sensor (LM75B)
  • Master Reader Writer / Slave Sender Receiver

Fixes#1774

@fpistmfpistm added bug 🐛Something isn't working fix 🩹Bug fix labelsJul 26, 2022
@fpistmfpistm added this to the2.3.1/2.4.0 milestoneJul 26, 2022
@fpistmfpistm requested a review fromABOSTMJuly 26, 2022 09:38
Previously, i2c_master_write and i2c_master_read returned I2C_OK iffirst HAL call returned HAL_BUSY which was not correct.Now make sure the i2c is ready, which guarantees a goodinitialization of the read or write sequence.Fixesstm32duino#1774Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Copy link
Contributor

@ABOSTMABOSTM left a comment

Choose a reason for hiding this comment

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

LGTM

@fpistmfpistm merged commite3808a2 intostm32duino:mainJul 29, 2022
@fpistmfpistm deleted the i2c_err branchJuly 29, 2022 12:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ABOSTMABOSTMABOSTM approved these changes

Assignees
No one assigned
Labels
bug 🐛Something isn't workingfix 🩹Bug fix
Projects
None yet
Milestone
2.4.0
Development

Successfully merging this pull request may close these issues.

wrong error management in i2C functions?
2 participants
@fpistm@ABOSTM

[8]ページ先頭

©2009-2025 Movatter.jp