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

Allow creation of duplicate device addresses for the Tca9548A. #2146

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

pgrawehr
Copy link
Contributor

@pgrawehr pgrawehr commented Oct 12, 2023

Fixes #2141

This should fix the use case where multiple devices with the same address are used with a TCA9548A. That's one of the main use cases for this device, after all. I have no such device, so the code is only tested using unit testing.

Microsoft Reviewers: Open in CodeFlow

We absolutely need some default simulation implementation for the
main hardware layes (I2C, SPI, GPIO), otherwise testing becomes
a nightmare, because the mocks have always to be created manually.
Copy link

@boondoggler74 boondoggler74 left a comment

Choose a reason for hiding this comment

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

looks good to me and works as expected when integration testing locally

Copy link
Member

@Ellerbach Ellerbach left a comment

Choose a reason for hiding this comment

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

Looks good, great improvement!

@pgrawehr pgrawehr merged commit 5986102 into dotnet:main Oct 18, 2023
9 checks passed
@pgrawehr pgrawehr deleted the TCA_DuplicateFix branch October 18, 2023 19:10
@pgrawehr pgrawehr added this to the v3.1.0 milestone Nov 9, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

creating multiple devices at the same address with the tca9548a
3 participants