mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
improvement: low voltage cut off as web ui option
This commit is contained in:
parent
db21a08904
commit
968d9188be
8 changed files with 31 additions and 18 deletions
|
|
@ -97,6 +97,7 @@ void Configuration::writeFile() {
|
|||
data["ota"]["password"] = ota.password;
|
||||
|
||||
data["other"]["lowPowerMode"] = lowPowerMode;
|
||||
data["other"]["lowVoltageCutOff"] = lowVoltageCutOff;
|
||||
|
||||
serializeJson(data, configFile);
|
||||
|
||||
|
|
@ -163,6 +164,7 @@ bool Configuration::readFile() {
|
|||
tnc.acceptOwn = data["tnc"]["acceptOwn"].as<bool>();
|
||||
|
||||
lowPowerMode = data["other"]["lowPowerMode"].as<bool>();
|
||||
lowVoltageCutOff = data["other"]["lowVoltageCutOff"].as<double>();
|
||||
|
||||
int stationMode = data["stationMode"].as<int>(); // deprecated but need to specify config version
|
||||
|
||||
|
|
@ -336,6 +338,7 @@ void Configuration::init() {
|
|||
externalVoltagePin = 34;
|
||||
|
||||
lowPowerMode = false;
|
||||
lowVoltageCutOff = 0;
|
||||
|
||||
Serial.println("todo escrito");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue