Fix the hiding of the lack of dmx output support message for builds that do have support

This commit is contained in:
Will Tatam
2026-02-06 19:50:45 +00:00
parent 6e9dc181e1
commit 147384074d
2 changed files with 3 additions and 2 deletions

View File

@@ -50,6 +50,7 @@
}
function hideDMXInput(){gId("dmxInput").style.display="none";}
function hideNoDMXInput(){gId("dmxInputOff").style.display="none";}
function hideNoDMXOutput(){gId("dmxOnOffOutput").style.display="none";}
</script>
</head>
<body>
@@ -170,7 +171,7 @@ Realtime LED offset: <input name="WO" type="number" min="-255" max="255" require
<div id="dmxInputOff">
<br><em style="color:darkorange">This firmware build does not include DMX Input support. <br></em>
</div>
<div id="dmxOnOff2">
<div id="dmxOnOffOutput">
<br><em style="color:darkorange">This firmware build does not include DMX output support. <br></em>
</div>
<hr class="sml">

View File

@@ -459,7 +459,7 @@ void getSettingsJS(byte subPage, Print& settingsScript)
printSetFormCheckbox(settingsScript,PSTR("EM"),e131Multicast);
printSetFormValue(settingsScript,PSTR("EU"),e131Universe);
#ifdef WLED_ENABLE_DMX
settingsScript.print(SET_F("hideNoDMX();")); // hide "not compiled in" message
settingsScript.print(SET_F("hideNoDMXOutput();")); // hide "not compiled in" message
#endif
#ifndef WLED_ENABLE_DMX_INPUT
settingsScript.print(SET_F("hideDMXInput();")); // hide "dmx input" settings