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 init resolution for all architectures #3184

Merged
merged 2 commits into from Feb 8, 2024
Merged

Conversation

code8buster
Copy link
Contributor

RP2040 was initializing to 10bit adc resolution b/c of the analogReadResolution call being cordoned off by a preprocessor ifdef.
Now fixed, hopefully for all archs

@code8buster code8buster merged commit f4151a7 into master Feb 8, 2024
65 checks passed
@code8buster code8buster deleted the rp2040-ADC-hotfix branch February 8, 2024 21:36
#endif // ARCH_NRF52
analogReadResolution(BATTERY_SENSE_RESOLUTION_BITS);
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks ESP32 architecture adc readings as it will set the ADC to 10bit when the default value for esp32 is set to 12bit. Fixed in 11d78be

We could also set the ESP32 ADC to 10 bit as 12 bit it's not needed.

code8buster added a commit that referenced this pull request Feb 12, 2024
Fixed ESP32 ADC resolution bug introduced by #3184
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

3 participants