warn user if serial protocols are disabled

This commit is contained in:
Frank
2023-03-19 16:17:35 +01:00
parent 076b5b373d
commit fae2546c09
3 changed files with 9 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
function toggle(el){gId(el).classList.toggle("hide"); gId('No'+el).classList.toggle("hide");} function toggle(el){gId(el).classList.toggle("hide"); gId('No'+el).classList.toggle("hide");}
function hideNoDMX(){gId("dmxOnOff2").style.display="none";} //WLEDMM function hideNoDMX(){gId("dmxOnOff2").style.display="none";} //WLEDMM
function hideNoLOX(){gId("loxOnOff2").style.display="none";} //WLEDMM function hideNoLOX(){gId("loxOnOff2").style.display="none";} //WLEDMM
function hideNoADA(){gId("adaOnOff2").style.display="none";} //WLEDMM
function H(){window.open("https://mm.kno.wled.ge/interfaces/udp-notifier/");} function H(){window.open("https://mm.kno.wled.ge/interfaces/udp-notifier/");}
function B(){window.open("/settings","_self");} function B(){window.open("/settings","_self");}
function adj(){if (d.Sf.DI.value == 6454) {if (d.Sf.EU.value == 1) d.Sf.EU.value = 0;} function adj(){if (d.Sf.DI.value == 6454) {if (d.Sf.EU.value == 1) d.Sf.EU.value = 0;}
@@ -230,7 +231,10 @@ Hue status: <span class="sip"> Disabled in this build </span>
<br><em style="color:darkorange">This firmware build does not include Loxone Lighting support. <br></em> <br><em style="color:darkorange">This firmware build does not include Loxone Lighting support. <br></em>
</div> </div>
<h3>Serial</h3> <h3>Serial</h3>
Baud rate: <div id="adaOnOff2"> <!--WLEDMM-->>
<br><em style="color:darkorange">This firmware build does not include Serial Command support. <br>Adalight/TPM2, Serial JSON and serial streaming are not possible. <br></em>
</div>
Baud rate:
<select name=BD> <select name=BD>
<option value=1152>115200</option> <option value=1152>115200</option>
<option value=2304>230400</option> <option value=2304>230400</option>

View File

@@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2303172 #define VERSION 2303190
//uncomment this if you have a "my_config.h" file you'd like to use //uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG //#define WLED_USE_MY_CONFIG

View File

@@ -604,6 +604,9 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
#ifdef WLED_ENABLE_LOXONE #ifdef WLED_ENABLE_LOXONE
oappend(SET_F("hideNoLOX();")); // WLEDMM hide "not compiled in" message oappend(SET_F("hideNoLOX();")); // WLEDMM hide "not compiled in" message
#endif #endif
#ifdef WLED_ENABLE_ADALIGHT
oappend(SET_F("hideNoADA();")); // WLEDMM hide "not compiled in" message
#endif
} }