pull/1/head
US1GHQ 2021-07-26 22:01:54 +03:00
parent 384483a7f4
commit 8f8ba8c0f9
1 changed files with 3 additions and 1 deletions

View File

@ -395,6 +395,8 @@ void batt_read(){
#ifdef T_BEAM_V1_0
BattVolts = axp.getBattVoltage()/1000;
InpVolts = axp.getVbusVoltage()/1000;
#elif HELTEC_V2
BattVolts = analogRead(13)*7.221/1024;
#else
BattVolts = analogRead(35)*7.221/4096;
#endif
@ -733,7 +735,7 @@ void setup(){
pinMode(RXPIN, OUTPUT);
#endif
pinMode(TXLED, OUTPUT);
#ifdef T_BEAM_V1_0
pinMode(BUTTON, INPUT);
#elif T_BEAM_V0_7