mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
full update for BatteryHealthMonitor
This commit is contained in:
parent
c6687529da
commit
3589f54d02
9 changed files with 61 additions and 21 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "configuration.h"
|
||||
#include "battery_utils.h"
|
||||
#include "boards_pinout.h"
|
||||
#include "power_utils.h"
|
||||
|
||||
|
|
@ -128,7 +129,7 @@ namespace POWER_Utils {
|
|||
pinMode(INTERNAL_LED_PIN, OUTPUT);
|
||||
#endif
|
||||
|
||||
if (Config.battery.sendExternalVoltage) {
|
||||
if (Config.battery.sendExternalVoltage || Config.battery.monitorExternalVoltage) {
|
||||
pinMode(Config.battery.externalVoltagePin, INPUT);
|
||||
}
|
||||
|
||||
|
|
@ -152,6 +153,8 @@ namespace POWER_Utils {
|
|||
#endif
|
||||
|
||||
delay(1000);
|
||||
|
||||
BATTERY_Utils::startupBatteryHealth();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue