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

Improve I2C receive retry logic #114

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Improve I2C receive retry logic #114

merged 3 commits into from
Sep 29, 2023

Conversation

zfields
Copy link
Contributor

@zfields zfields commented Sep 29, 2023

This modification was made to improve the experience with the Notecard ESP, and has been tested quite extensively.

@zfields
Copy link
Contributor Author

zfields commented Sep 29, 2023

@zfields
Copy link
Contributor Author

zfields commented Sep 29, 2023

The loss of coverage is from an uncovered branch for exiting a loop, not an uncovered line.

As this is the case, I intend to override the coverage check.

result = ERRSTR("serial-over-i2c: unexpected raw byte count {io}",i2cerr);
} else {
// Ensure available byte count is within expected range
static const size_t AVAILBLE_MAX = (NoteI2c::REQUEST_MAX_SIZE - NoteI2c::REQUEST_HEADER_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

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

AVAILBLE -> AVAILABLE

@zfields zfields merged commit 18b485a into master Sep 29, 2023
84 checks passed
@zfields zfields deleted the zak-i2c-rcv-retry branch September 29, 2023 17:58
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