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

Changes to use the correct i2c function #173

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

gustavosr8
Copy link
Contributor

No description provided.

@augustofg
Copy link
Member

Here is a more complete commit message:

Write address and read data should be done in a single I2C transaction

When reading from an I2C EEPROM you need to write the address first,
then send a restart, read the data and finish the transaction. Writing
the address and reading the data in different transactions might work,
but it seems to be a fragile assumption.

@gustavosr8 gustavosr8 force-pushed the at24mac-i2c-fix branch 2 times, most recently from d148333 to 21ad5bd Compare October 4, 2023 13:31
@gustavosr8 gustavosr8 self-assigned this Oct 4, 2023
When reading from an I2C EEPROM you need to write the address first,
then send a restart, read the data and finish the transaction. Writing
the address and reading the data in different transactions might work,
but it seems to be a fragile assumption.
@augustofg augustofg merged commit f0d4779 into devel Oct 4, 2023
5 checks passed
@augustofg augustofg deleted the at24mac-i2c-fix branch October 4, 2023 17:22
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