Merge pull request #3217 from Gabrielerusso/ADC-resolution-fix

Fixed ESP32 ADC resolution bug introduced by #3184
This commit is contained in:
code8buster 2024-02-12 19:59:38 +00:00 committed by GitHub
commit c43cbb5795
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -390,7 +390,10 @@ bool Power::analogInit()
analogReference(AR_INTERNAL); // 3.6V
#endif
#endif // ARCH_NRF52
#ifndef ARCH_ESP32
analogReadResolution(BATTERY_SENSE_RESOLUTION_BITS);
#endif
batteryLevel = &analogLevel;
return true;