mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 14:56:32 +00:00
More OTA UI tweaks
This commit is contained in:
parent
796494e925
commit
6a5dcb3a76
@ -329,7 +329,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<button class="btn ibtn" onclick="requestJson()">Refresh</button>
|
<button class="btn ibtn" onclick="requestJson()">Refresh</button>
|
||||||
<button class="btn ibtn" onclick="toggleNodes()">Instance List</button>
|
<button class="btn ibtn" onclick="toggleNodes()">Instance List</button>
|
||||||
<button class="btn ibtn" onclick="window.open(getURL('/update'),'_self');">Update WLED</button>
|
<button class="btn ibtn" onclick="window.open(getURL('/update'),'_self');" id="updBt">Update WLED</button>
|
||||||
<button class="btn ibtn" id="resetbtn" onclick="cnfReset()">Reboot WLED</button>
|
<button class="btn ibtn" id="resetbtn" onclick="cnfReset()">Reboot WLED</button>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
@ -685,6 +685,7 @@ function parseInfo(i) {
|
|||||||
gId("filter2D").classList.remove('hide');
|
gId("filter2D").classList.remove('hide');
|
||||||
gId('bs').querySelectorAll('option[data-type="2D"]').forEach((o,i)=>{o.style.display='';});
|
gId('bs').querySelectorAll('option[data-type="2D"]').forEach((o,i)=>{o.style.display='';});
|
||||||
}
|
}
|
||||||
|
gId("updBt").style.display = (i.opt & 1) ? '':'none';
|
||||||
// if (i.noaudio) {
|
// if (i.noaudio) {
|
||||||
// gId("filterVol").classList.add("hide");
|
// gId("filterVol").classList.add("hide");
|
||||||
// gId("filterFreq").classList.add("hide");
|
// gId("filterFreq").classList.add("hide");
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
// You are required to disable over-the-air updates:
|
// You are required to disable over-the-air updates:
|
||||||
//#define WLED_DISABLE_OTA // saves 14kb
|
//#define WLED_DISABLE_OTA // saves 14kb
|
||||||
#ifdef WLED_ENABLE_AOTA
|
#ifdef WLED_ENABLE_AOTA
|
||||||
|
#if defined(WLED_DISABLE_OTA)
|
||||||
|
#warning WLED_DISABLE_OTA was defined but it will be ignored due to WLED_ENABLE_AOTA.
|
||||||
|
#endif
|
||||||
#undef WLED_DISABLE_OTA
|
#undef WLED_DISABLE_OTA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user