mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
Battery Monitor for T-Beams
This commit is contained in:
parent
e9bb0391f2
commit
c5217842ff
6 changed files with 64 additions and 36 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue