Skip to content

Check for valid number of bytes received#3

Open
lewispg228 wants to merge 2 commits intomasterfrom
Check_for_valid_numberOfBytesReceived
Open

Check for valid number of bytes received#3
lewispg228 wants to merge 2 commits intomasterfrom
Check_for_valid_numberOfBytesReceived

Conversation

@lewispg228
Copy link
Copy Markdown
Contributor

Attempting to fix issue #2 .

Added a check for number of bytes received. If it's zero, then it won't do anything, and so this should help avoid a I2C scan over-writing the registerNumber variable.

ensure we received valid byte or bytes - note, an I2C scan does not send anything, so without this, it would overright registerNumber with Zero value.
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