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

shared-bindings: Get rid of CYW43 special cases in shared-bindings #7207

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

jepler
Copy link
Member

@jepler jepler commented Nov 14, 2022

.. by moving it into a new weak function that can be replaced just by the picow build.

I was stewing about this and Dan also mentioned that the way that cyw43 poked its head out into shared-bindings was gross. A weak function that allows the port to substitute a different check is a way to move the complexity back where it belongs.

@jepler jepler requested a review from dhalbert November 14, 2022 13:54
dhalbert
dhalbert previously approved these changes Nov 14, 2022
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

This is a very nice solution. Making the validation routines weak functions is great to avoid having to implement them in all the ports.

@jepler jepler changed the title shared-bindings: Get rid of CYW43 special cases in the public code shared-bindings: Get rid of CYW43 special cases in shared-bindings Nov 14, 2022
.. by moving it into a new weak function that can be replaced
just by the picow build.
@jepler
Copy link
Member Author

jepler commented Nov 14, 2022

I fixed (I hope) the build errors and re-titled the PR since the phrase "non-public code" could be open to misinterpretation :)

@jepler jepler marked this pull request as ready for review November 15, 2022 01:12
@dhalbert dhalbert merged commit 11dcd69 into adafruit:main Nov 15, 2022
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.

None yet

2 participants