Browse Source
Add files via upload
Configuration added for SML/OBIS
pull/1080/head
oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/web/web.h
|
@ -434,7 +434,7 @@ class Web { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void showSave(AsyncWebServerRequest *request) { |
|
|
void showSave(AsyncWebServerRequest *request) { |
|
|
DPRINTLN(DBG_INFO, F("showSave")); |
|
|
DPRINTLN(DBG_VERBOSE, F("showSave")); |
|
|
|
|
|
|
|
|
checkProtection(request); |
|
|
checkProtection(request); |
|
|
|
|
|
|
|
@ -597,6 +597,7 @@ class Web { |
|
|
mConfig->plugin.display.disp_busy = (mConfig->plugin.display.type < 10) ? DEF_PIN_OFF : request->arg("disp_bsy").toInt(); |
|
|
mConfig->plugin.display.disp_busy = (mConfig->plugin.display.type < 10) ? DEF_PIN_OFF : request->arg("disp_bsy").toInt(); |
|
|
|
|
|
|
|
|
mApp->saveSettings((request->arg("reboot") == "on")); |
|
|
mApp->saveSettings((request->arg("reboot") == "on")); |
|
|
|
|
|
|
|
|
AsyncWebServerResponse *response = request->beginResponse_P(200, F("text/html; charset=UTF-8"), save_html, save_html_len); |
|
|
AsyncWebServerResponse *response = request->beginResponse_P(200, F("text/html; charset=UTF-8"), save_html, save_html_len); |
|
|
response->addHeader(F("Content-Encoding"), "gzip"); |
|
|
response->addHeader(F("Content-Encoding"), "gzip"); |
|
|
request->send(response); |
|
|
request->send(response); |
|
|