mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-14 16:55:10 +00:00
fix battery voltage reading
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
// read battery voltage
|
||||
int adcvalue = 0;
|
||||
analogReadResolution(12);
|
||||
analogReference(AR_INTERNAL);
|
||||
analogReference(AR_INTERNAL_3_0);
|
||||
delay(10);
|
||||
adcvalue = analogRead(BATTERY_ADC_DATA);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user