Skip to content

spi.close() does not remove the ID from the Context. Not sure how th…#677

Merged
eitch merged 1 commit into
developfrom
spi_close_ID_removal
Jun 24, 2026
Merged

spi.close() does not remove the ID from the Context. Not sure how th…#677
eitch merged 1 commit into
developfrom
spi_close_ID_removal

Conversation

@taartspi

Copy link
Copy Markdown
Contributor

…e context rework created this, calling super.close() fixed it. Maybe Stefan will understand the previous code path that did the removel.

… context rework created this, calling super.close() fixed it. Maybe Stefan will understand the previous code path that did the removel.
@taartspi taartspi added the bug Something isn't working label Jun 24, 2026
@stefanhaustein

Copy link
Copy Markdown
Contributor

(I suspect it never worked and cleaning up a supposedly redundant shutdown call somewhere exposed this)?

@Override
public void close() {
logger.trace("invoked 'closed()'");
super.close();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Based on #676, do we also need this for I2C?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IIRC I had fixed this a while ago for I2c but did not check SPI:

I had noticed while working on the USB bridge, which supports I2C only...

I guess it might be cleaner to call super.close there, too

@eitch

eitch commented Jun 24, 2026

Copy link
Copy Markdown
Member

@stefanhaustein will you change it in SPI then?

@eitch eitch merged commit ff57c0f into develop Jun 24, 2026
5 checks passed
@eitch eitch deleted the spi_close_ID_removal branch June 24, 2026 06:36
@sonarqubecloud

Copy link
Copy Markdown

@taartspi

taartspi commented Jun 24, 2026 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants