mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-23 11:17:11 +02:00
added missing files
This commit is contained in:
parent
8ffd747420
commit
a80167912c
6 changed files with 316 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue