Skip to content

Commit 6a5dcb3

Browse files
committed
More OTA UI tweaks
1 parent 796494e commit 6a5dcb3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

wled00/data/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
<div>
330330
<button class="btn ibtn" onclick="requestJson()">Refresh</button>
331331
<button class="btn ibtn" onclick="toggleNodes()">Instance List</button>
332-
<button class="btn ibtn" onclick="window.open(getURL('/update'),'_self');">Update WLED</button>
332+
<button class="btn ibtn" onclick="window.open(getURL('/update'),'_self');" id="updBt">Update WLED</button>
333333
<button class="btn ibtn" id="resetbtn" onclick="cnfReset()">Reboot WLED</button>
334334
</div>
335335
<br>

wled00/data/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ function parseInfo(i) {
685685
gId("filter2D").classList.remove('hide');
686686
gId('bs').querySelectorAll('option[data-type="2D"]').forEach((o,i)=>{o.style.display='';});
687687
}
688+
gId("updBt").style.display = (i.opt & 1) ? '':'none';
688689
// if (i.noaudio) {
689690
// gId("filterVol").classList.add("hide");
690691
// gId("filterFreq").classList.add("hide");

wled00/wled.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
// You are required to disable over-the-air updates:
2323
//#define WLED_DISABLE_OTA // saves 14kb
2424
#ifdef WLED_ENABLE_AOTA
25+
#if defined(WLED_DISABLE_OTA)
26+
#warning WLED_DISABLE_OTA was defined but it will be ignored due to WLED_ENABLE_AOTA.
27+
#endif
2528
#undef WLED_DISABLE_OTA
2629
#endif
2730

0 commit comments

Comments
 (0)