diff --git a/wled00/data/common.js b/wled00/data/common.js
index 658346e75..5a98b4fe1 100644
--- a/wled00/data/common.js
+++ b/wled00/data/common.js
@@ -13,7 +13,7 @@ function isN(n) { return !isNaN(parseFloat(n)) && isFinite(n); } // isNumber
// https://stackoverflow.com/questions/3885817/how-do-i-check-that-a-number-is-float-or-integer
function isF(n) { return n === +n && n !== (n|0); } // isFloat
function isI(n) { return n === +n && n === (n|0); } // isInteger
-function toggle(el) { gId(el).classList.toggle("hide"); gId('No'+el).classList.toggle("hide"); }
+function toggle(el) { gId(el).classList.toggle("hide"); let n = gId('No'+el); if (n) n.classList.toggle("hide"); }
function tooltip(cont=null) {
d.querySelectorAll((cont?cont+" ":"")+"[title]").forEach((element)=>{
element.addEventListener("pointerover", ()=>{
diff --git a/wled00/data/settings_sec.htm b/wled00/data/settings_sec.htm
index 7f4627049..7a92c27b3 100644
--- a/wled00/data/settings_sec.htm
+++ b/wled00/data/settings_sec.htm
@@ -53,13 +53,13 @@
Factory reset:
All settings and presets will be erased.
⚠ Unencrypted transmission. An attacker on the same network can intercept form data!
-
+
Software Update
Enable ArduinoOTA:
Only allow update from same network/WiFi: ⚠ If you are using multiple VLANs (i.e. IoT or guest network) either set PIN or disable this option.
- Disabling this option will make your device less secure.
+ Disabling this option will make your device less secure.
Backup & Restore
⚠ Restoring presets/configuration will OVERWRITE your current presets/configuration.
diff --git a/wled00/wled_server.cpp b/wled00/wled_server.cpp
index 5fb36e577..f12b00ab2 100644
--- a/wled00/wled_server.cpp
+++ b/wled00/wled_server.cpp
@@ -454,16 +454,12 @@ void initServer()
serveMessage(request, 501, FPSTR(s_notimplemented), F("This build does not support OTA update."), 254);
};
server.on(_update, HTTP_GET, notSupported);
- server.on(_update, HTTP_POST, notSupported);
+ server.on(_update, HTTP_POST, notSupported, [](AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool isFinal){});
#endif
#ifdef WLED_ENABLE_DMX
server.on(F("/dmxmap"), HTTP_GET, [](AsyncWebServerRequest *request){
- request->send_P(200, FPSTR(CONTENT_TYPE_HTML), PAGE_dmxmap , dmxProcessor);
- });
-#else
- server.on(F("/dmxmap"), HTTP_GET, [](AsyncWebServerRequest *request){
- serveMessage(request, 501, FPSTR(s_notimplemented), F("DMX support is not enabled in this build."), 254);
+ request->send_P(200, FPSTR(CONTENT_TYPE_HTML), PAGE_dmxmap, dmxProcessor);
});
#endif
diff --git a/wled00/xml.cpp b/wled00/xml.cpp
index 934bcc60b..9a9a0be79 100644
--- a/wled00/xml.cpp
+++ b/wled00/xml.cpp
@@ -596,8 +596,11 @@ void getSettingsJS(byte subPage, Print& settingsScript)
snprintf_P(tmp_buf,sizeof(tmp_buf),PSTR("WLED %s (build %d)"),versionString,VERSION);
printSetClassElementHTML(settingsScript,PSTR("sip"),0,tmp_buf);
settingsScript.printf_P(PSTR("sd=\"%s\";"), serverDescription);
- #ifndef WLED_ENABLE_AOTA
//hide settings if not compiled
+ #ifdef WLED_DISABLE_OTA
+ settingsScript.print(F("toggle('OTA');")); // hide update section
+ #endif
+ #ifndef WLED_ENABLE_AOTA
settingsScript.print(F("toggle('aOTA');")); // hide ArduinoOTA checkbox
#endif
}