mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 14:42:05 +00:00
Merge pull request #3217 from Gabrielerusso/ADC-resolution-fix
Fixed ESP32 ADC resolution bug introduced by #3184
This commit is contained in:
commit
c43cbb5795
@ -390,7 +390,10 @@ bool Power::analogInit()
|
|||||||
analogReference(AR_INTERNAL); // 3.6V
|
analogReference(AR_INTERNAL); // 3.6V
|
||||||
#endif
|
#endif
|
||||||
#endif // ARCH_NRF52
|
#endif // ARCH_NRF52
|
||||||
|
|
||||||
|
#ifndef ARCH_ESP32
|
||||||
analogReadResolution(BATTERY_SENSE_RESOLUTION_BITS);
|
analogReadResolution(BATTERY_SENSE_RESOLUTION_BITS);
|
||||||
|
#endif
|
||||||
|
|
||||||
batteryLevel = &analogLevel;
|
batteryLevel = &analogLevel;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user