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

Fix ifdefs for disabled uart stdio in rp2040 family #1796

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Fix ifdefs for disabled uart stdio in rp2040 family #1796

merged 3 commits into from
Feb 22, 2023

Conversation

sinitax
Copy link
Contributor

@sinitax sinitax commented Dec 13, 2022

Fix ifdefs such that uart is not used for stdio by tinyusb when it is disabled via pico_enable_stdio_uart in CMakeLists.txt.

Without the extra guards, the compiler aborts because a null pointer deref will take place when the pico stdio uart object is accessed by tinyusb.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you for your PR. I made some changes to move the macro check to board.h to make it easier to follow

@hathach hathach merged commit b66c2d5 into hathach:master Feb 22, 2023
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