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

Work around an sdk bug (fixes rotaryio on RP2350) #9682

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

jepler
Copy link
Member

@jepler jepler commented Oct 3, 2024

This was already reported & fixed upstream, but the fix will not be in a released SDK until 2.0.1. It's easy enough to use our own workaround.

Testing: without this bug fix, rotaryencoder did not work on a pico 2

Note: the cut&paste code was reindented by uncrustify, giving it a slightly different style than the upstream sdk code.

Closes: #9681

I thought I had PRd this two weeks ago, but apparently I didn't. The problem was independently rediscovered by @D3Fq, thanks for the report.

This was already reported & fixed upstream, but the fix will not be
in a released SDK until 2.0.1. It's easy enough to use our own workaround.

Testing: without this bug fix, rotaryencoder did not work on a pico 2

Note: the cut&paste code was reindented by uncrustify, giving it a slightly
different style than the upstream sdk code.
@dhalbert
Copy link
Collaborator

dhalbert commented Oct 4, 2024

Looks like pico-sdk 2.0.1 might be next week, if I am interpreting this correctly: raspberrypi/pico-sdk#1877 (comment)

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.

I tested with an RP2350 and also an RP2040 (to check for any regression). Both work with the test program. Thanks!

@dhalbert dhalbert merged commit 11d4bce into adafruit:main Oct 4, 2024
136 checks passed
@dhalbert dhalbert changed the title Work around an sdk bug Work around an sdk bug (fixes rotaryio on RP2350) Oct 8, 2024
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.

rotaryio library doesn't work on RP2350
2 participants