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

applet.interface.i2c_master: do write scanning before read scanning t… #168

Merged
merged 1 commit into from Oct 6, 2019

Conversation

electroniceel
Copy link
Member

…o reduce possible side-effects

as discussed in #166

@@ -237,19 +237,19 @@ def __init__(self, interface, logger):
# default address range: don't scan reserved I2C addresses
found = set()
for addr in addresses:
if write:
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a comment explaining the ordering?

@whitequark whitequark merged commit 9d7e113 into GlasgowEmbedded:master Oct 6, 2019
@electroniceel electroniceel deleted the i2c-scan branch October 6, 2019 18:34
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.

None yet

2 participants