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

fix(io): IOBase constructor do not update the fields id, name & description #344

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

fusetim
Copy link
Contributor

@fusetim fusetim commented Apr 14, 2024

The classes extending IOBase were already updating those fields (except SerialBase). SerialBase was the only class missing this change.

These changes allow the user to use multiple Serial interface at the same time. It was impossible before, as Pi4J would throw IOAlreadyExistsException.

This commit "moves" the fixes for the similar issues in the SPI interface. It also moves the similar code found in the dependency classes in the IOBase class.

Ref: #244, #257
Closes: #257

…iption

The classes extending IOBase were already updating those fields (except SerialBase).
SerialBase was the only class missing this change.

These changes allow the user to use multiple Serial interface at the same time. It
was impossible before, as Pi4J would throws IOAlreadyExistsException.

This commit "moves" the fixes for the similar issues in the SPI interface.

Ref: Pi4J#244, Pi4J#257
Closes: Pi4J#257
Copy link
Member

@eitch eitch left a comment

Choose a reason for hiding this comment

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

Thanks for that!

@eitch
Copy link
Member

eitch commented Apr 15, 2024

You may change your PR to be ready for pulling

@fusetim fusetim marked this pull request as ready for review April 15, 2024 10:54
@eitch eitch merged commit 4ed7933 into Pi4J:develop Apr 15, 2024
1 check passed
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.

IOAlreadyExistsException when reopening Serial-connection
2 participants