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

Do not allow multiple-read/write with pins from different chips #4

Merged
merged 1 commit into from
May 5, 2022

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented May 5, 2022

When multiple instances of the same port expander are used in the same program, read_multiple() and write_multiple() happily accepted pins from all of them but read/wrote them to another chips pins.

Add an assertion to prevent this kind of misuse.

When multiple instances of the same port expander are used in the same
program, read_multiple() and write_multiple() happily accepted pins from
all of them but read/wrote them to another chips pins.

Add an assertion to prevent this kind of misuse.
@Rahix Rahix merged commit 815c700 into main May 5, 2022
@Rahix Rahix deleted the fix-multi-same-chip branch May 5, 2022 21:45
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