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

Remove adafruit_bus_device.SPIDevice.spi #4179

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Feb 11, 2021

Fixes #4172.

adafruit/Adafruit_CircuitPython_SD#43 removes the need for the .spi accessor. We don't want to expose this internal state unnecessarily.

@tannewt's PR that added .spi, #4114, also cleaned up __enter__() and __exit__(), so this revert does not undo those improvements.

I tested this on a PyPortal with the sd simpletest.

@dhalbert dhalbert requested a review from tannewt February 11, 2021 15:39
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit e15f157 into adafruit:main Feb 11, 2021
@dhalbert dhalbert deleted the remove-spidevice-spi-4172 branch February 24, 2021 23:01
@dhalbert dhalbert restored the remove-spidevice-spi-4172 branch February 25, 2021 02:23
@dhalbert dhalbert deleted the remove-spidevice-spi-4172 branch February 25, 2021 02:27
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.

Revert "Add .spi accessor to SPIDevice #4114"
2 participants