Browse Source

web: Move declaration to avoid unused-variable warning

The variable is obviously only needed inside those `!defined(ETHERNET)`
areas.

Fixes: a80167912c ("added missing files")
pull/1191/head
Alexander Dahl 2 years ago
parent
commit
b426a7cd76
  1. 2
      src/web/web.h

2
src/web/web.h

@ -183,8 +183,8 @@ class Web {
mUploadFp.write(data, len); mUploadFp.write(data, len);
if (final) { if (final) {
mUploadFp.close(); mUploadFp.close();
char pwd[PWD_LEN];
#if !defined(ETHERNET) #if !defined(ETHERNET)
char pwd[PWD_LEN];
strncpy(pwd, mConfig->sys.stationPwd, PWD_LEN); // backup WiFi PWD strncpy(pwd, mConfig->sys.stationPwd, PWD_LEN); // backup WiFi PWD
#endif #endif
if (!mApp->readSettings("/tmp.json")) { if (!mApp->readSettings("/tmp.json")) {

Loading…
Cancel
Save