Skip to content

Conversation

@m-RNA
Copy link
Contributor

@m-RNA m-RNA commented Jan 10, 2026

refactor(Monitoring): abstract platform-specific ADC code and add ESP32-S2 support

  • Move calibration functions to platform-specific files
  • Add ADC_SAMPLER_SUPPORTED macro for unified platform detection
  • Add ESP32-S2 support (UNTESTED)
  • Remove explicit #if defined() macros from common code

…32-S2 support

- Move calibration functions to platform-specific files
- Add ADC_SAMPLER_SUPPORTED macro for unified platform detection
- Add ESP32-S2 support (UNTESTED)
- Remove explicit #if defined() macros from common code
@m-RNA m-RNA force-pushed the update/AdcSampler branch from 6a1728d to 0105375 Compare January 10, 2026 15:56
@m-RNA m-RNA marked this pull request as ready for review January 10, 2026 16:01
@m-RNA
Copy link
Contributor Author

m-RNA commented Jan 10, 2026

Hi @lorow — following up on your comment from the last Pr #28 .

This one refactors the ADC logic to:
Move platform-specific calibration into separate files (AdcSampler_esp32.cpp, _s3.cpp, _s2.cpp)
Remove #if defined() macros from the common code
Add a unified ADC_SAMPLER_SUPPORTED check
Include initial (untested, based on docs only) ESP32-S2 support for completeness
Now the structure is cleaner, and it's ready for review.

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.

1 participant