Battery Monitor for T-Beams

This commit is contained in:
richonguzman 2024-05-27 11:46:14 -04:00
parent e9bb0391f2
commit c5217842ff
6 changed files with 64 additions and 36 deletions

View file

@ -122,7 +122,7 @@ namespace Utils {
beaconPacket += Config.beacon.comment;
secondaryBeaconPacket += Config.beacon.comment;
#ifdef BATTERY_PIN
#if defined(BATTERY_PIN) || defined(HAS_AXP192) || defined(HAS_AXP2101)
if (Config.battery.sendInternalVoltage || Config.battery.monitorInternalVoltage) {
float internalVoltage = BATTERY_Utils::checkInternalVoltage();
String internalVoltageInfo = String(internalVoltage,2) + "V";