mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-11-09 15:16:41 +01:00
testeando ultimos valores
This commit is contained in:
1 parent
d5930380b4
commit
8eb4ef1dc2
3 files changed
+6
-5
No files matched your search
@@ -371,7 +371,7 @@ bool Configuration::readFile() {
|
||||
if (needsRewrite) {
|
||||
Serial.println("Config JSON incomplete, rewriting...");
|
||||
writeFile();
|
||||
delay(1000);
|
||||
delay(500);
|
||||
ESP.restart();
|
||||
}
|
||||
Serial.println("Config read successfuly");
|
||||
@@ -382,7 +382,7 @@ bool Configuration::readFile() {
|
||||
}
|
||||
}
|
||||
|
||||
void Configuration::init() {
|
||||
void Configuration::setDefaultValues() {
|
||||
|
||||
WiFi_AP wifiap;
|
||||
wifiap.ssid = "";
|
||||
@@ -504,8 +504,9 @@ Configuration::Configuration() {
|
||||
|
||||
bool exists = SPIFFS.exists("/igate_conf.json");
|
||||
if (!exists) {
|
||||
init();
|
||||
setDefaultValues();
|
||||
writeFile();
|
||||
delay(500);
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user