From 79dfc0cc8f2d53c7a9e52463292d0d297d5a6668 Mon Sep 17 00:00:00 2001 From: "Rysiek Labus (SQ9MDD)" Date: Mon, 13 Sep 2021 23:24:03 +0200 Subject: [PATCH] TTGO T-Beam 0.7 voltage scaling problem #65 fixed thanks to Luca IU2FRL --- src/TTGO_T-Beam_LoRa_APRS.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 22b1a20..87cffa4 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -356,7 +356,7 @@ void batt_read(){ BattVolts = axp.getBattVoltage()/1000; InpVolts = axp.getVbusVoltage()/1000; #else - BattVolts = analogRead(35)*7.221/4096; + BattVolts = analogRead(35)*7.221/8192; // fixed thanks to Luca IU2FRL #endif } @@ -1053,4 +1053,4 @@ void loop() { #endif #endif vTaskDelay(1); -} \ No newline at end of file +}