added missing files

This commit is contained in:
lumapu 2023-05-09 22:59:20 +02:00
parent 8ffd747420
commit a80167912c
6 changed files with 316 additions and 7 deletions

View file

@ -188,13 +188,17 @@ class Web {
if (final) {
mUploadFp.close();
char pwd[PWD_LEN];
#if !defined(ETHERNET)
strncpy(pwd, mConfig->sys.stationPwd, PWD_LEN); // backup WiFi PWD
#endif
if (!mApp->readSettings("/tmp.json")) {
mUploadFail = true;
DPRINTLN(DBG_ERROR, F("upload JSON error!"));
} else {
LittleFS.remove("/tmp.json");
#if !defined(ETHERNET)
strncpy(mConfig->sys.stationPwd, pwd, PWD_LEN); // restore WiFi PWD
#endif
mApp->saveSettings(true);
}
if (!mUploadFail)