TTGO T-Beam 0.7 voltage scaling problem #65
fixed thanks to Luca IU2FRL
This commit is contained in:
parent
9232352c3c
commit
79dfc0cc8f
|
|
@ -356,7 +356,7 @@ void batt_read(){
|
||||||
BattVolts = axp.getBattVoltage()/1000;
|
BattVolts = axp.getBattVoltage()/1000;
|
||||||
InpVolts = axp.getVbusVoltage()/1000;
|
InpVolts = axp.getVbusVoltage()/1000;
|
||||||
#else
|
#else
|
||||||
BattVolts = analogRead(35)*7.221/4096;
|
BattVolts = analogRead(35)*7.221/8192; // fixed thanks to Luca IU2FRL
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1053,4 +1053,4 @@ void loop() {
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
vTaskDelay(1);
|
vTaskDelay(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue