TTGO T-Beam 0.7 voltage scaling problem #65

fixed thanks to Luca IU2FRL
This commit is contained in:
Rysiek Labus (SQ9MDD) 2021-09-13 23:24:03 +02:00 committed by GitHub
parent 9232352c3c
commit 79dfc0cc8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }