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

Remove CORE_DEBUG_LEVEL that affected PM sensor reading #300

Merged
merged 3 commits into from
Apr 7, 2025

Conversation

samuelbles07
Copy link
Collaborator

@samuelbles07 samuelbles07 commented Apr 5, 2025

Problems

So turns out CORE_DEBUG_LEVEL build flag is using Serial0 which is connected to PM sensor that makes PM sensor send error measures values, even though USB_CDC is enabled,.

Solutions

CORE_DEBUG_LEVEL build flag is used by airgradient libraries (airgradient-client and airgradient-ota) to print out esp_log. Now the libs using custom log macros to handle two environments which are Arduino and ESP-IDF so CORE_DEBUG_LEVEL can be removed.

The libs expecting AG_LOG_LEVEL defined so agLogger.h able to compile the target log level needed.

Notes: This PR temporarily link airgradient libs submodule to WIP branch. Will be changed after PR on those libs are merged.

And change it to airgradient log level that take effect to airgradient submodules
Temporary bump submodule to WIP branch
@samuelbles07 samuelbles07 merged commit 6051e18 into develop Apr 7, 2025
20 checks passed
@samuelbles07 samuelbles07 deleted the fix/pms-error branch April 7, 2025 08:33
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.

2 participants