fix battery voltage reading
This commit is contained in:
1 parent
242c45f4a3
commit
a49ee6ebe9
1 file changed
+1
-1
@@ -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