mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-06 06:55:07 +00:00
Sleep fix when saving Config
This commit is contained in:
parent
aba82ef3e0
commit
14473cb7c7
2 changed files with 14 additions and 9 deletions
|
|
@ -4,6 +4,9 @@
|
|||
#include "display.h"
|
||||
|
||||
|
||||
bool shouldSleepStop = true;
|
||||
|
||||
|
||||
void Configuration::writeFile() {
|
||||
Serial.println("Saving config...");
|
||||
|
||||
|
|
@ -166,6 +169,7 @@ bool Configuration::readFile() {
|
|||
|
||||
digi.mode = data["digi"]["mode"] | 0;
|
||||
digi.ecoMode = data["digi"]["ecoMode"] | 0;
|
||||
if (digi.ecoMode == 1) shouldSleepStop = false;
|
||||
|
||||
loramodule.txFreq = data["lora"]["txFreq"] | 433775000;
|
||||
loramodule.rxFreq = data["lora"]["rxFreq"] | 433775000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue