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 a superfluous trait bound that broke non-totem-pole devices #35

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Jul 5, 2024

There is no requirement for the hal trait implementations (InputPin, OutputPin, StatefulOutputPin) to require a PortDriverTotemPole. In fact, the presence of this bound means non-totem-pole devices no longer have hal trait implementations.

Drop the superfluous bound to make non-totem-pole devices work again.

Fixes: e7712de ("feat: Update to embedded-hal 1.0.0") (regression in 0.5.0)
Fixes: #33

There is no requirement for the hal trait implementations (`InputPin`,
`OutputPin`, `StatefulOutputPin`) to require a `PortDriverTotemPole`.
In fact, the presence of this bound means non-totem-pole devices no
longer have hal trait implementations.

Drop the superfluous bound to make non-totem-pole devices work again.

Fixes: e7712de ("feat: Update to embedded-hal 1.0.0")
Reported-by: Thomas Riedler <[email protected]>
@Rahix Rahix force-pushed the fix-trait-bounds branch from 01e4fa5 to 91ac734 Compare July 5, 2024 21:33
@Rahix Rahix merged commit 8d5a829 into main Jul 5, 2024
2 checks passed
@Rahix Rahix deleted the fix-trait-bounds branch July 5, 2024 21:39
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.

PortDriverTotemPole trait bound for OutputPin trait when using PCF8574/8575 not satisfied
1 participant