mirror of
https://github.com/wled/WLED.git
synced 2025-11-13 13:00:48 +00:00
Tweaks in OTA UI
- added OTA section toggle - added ignore upload - fix for missing "NoXXX" ID - rely on 404 for /dmxmap
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user