Skip to content

Provide an easy way to disable cyw43 logging #2535

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

peterharperuk
Copy link
Contributor

All cyw43 logging uses CYW43_PRINTF by default. To disable logging you have to define this to do nothing. There's no simple way to achieve this. Make it easier by adding PICO_CYW43_LOGGING_ENABLED which can be set to zero to disable CYW43_PRINTF.

Fixes #2523

All cyw43 logging uses CYW43_PRINTF by default. To disable logging you
have to define this to do nothing. There's no simple way to achieve
this. Make it easier by adding PICO_CYW43_LOGGING_ENABLED which can be
set to zero to disable CYW43_PRINTF.

Fixes raspberrypi#2523
lurch
lurch previously approved these changes Jun 19, 2025
@kilograham
Copy link
Contributor

looks good - maybe we could add

CYW43_DEBUG_ENABLED etc to mirror the new CYBT_DEBUG_ENABLED (I now see why this was confusing, as one of the headers is in the lib/, but we can add this up front in the cyw43_config_port for when it is defined to 0

@peterharperuk
Copy link
Contributor Author

CYW43_DEBUG_ENABLED etc to mirror the new CYBT_DEBUG_ENABLED

Maybe it would be better to get that added to cyw43-driver if you think it's important?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants