Skip to content

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

Merged
dhalbert merged 1 commit intoadafruit:mainfrom
jepler:rp2350-sdk-bug-workaround
Oct 4, 2024
Merged

Work around an sdk bug (fixes rotaryio on RP2350)#9682
dhalbert merged 1 commit intoadafruit:mainfrom
jepler:rp2350-sdk-bug-workaround

Conversation

@jepler
Copy link

@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
@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