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

PIOProgram: Replace __pioHighGPIO with pio_get_gpio_base() #2769

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

sfe-SparkFro
Copy link
Contributor

Fixes #2768

I've also changed needsHigh (true or false) to gpioBaseNeeded (0 or 16) to help simplify some of the checks and prints later on. This matches the original behavior of PIOProgram.cpp (at least as far as my quick test showed), though I think it may be better to change it to some kind of tertiary behavior, because GPIO base 0 and 16 are both valid for GPIO 16-31. But that's an optimization better had in a different PR, because this is just meant to be a bug fix.

Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

Great, thanks foe finding and fixing this. LGTM!

@earlephilhower earlephilhower merged commit 5a34395 into earlephilhower:master Jan 21, 2025
26 checks passed
@sfe-SparkFro sfe-SparkFro deleted the fix-2768 branch January 21, 2025 18:22
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.

PIOProgram unaware of outside PIO usage
2 participants