Backup RFP Infinity controller state before Resolume changes
Some checks failed
WLED CI / wled_build (push) Has been cancelled
Deploy Nightly / wled_build (push) Has been cancelled
Deploy Nightly / Deploy nightly (push) Has been cancelled

This commit is contained in:
jan
2026-05-14 12:31:13 +02:00
parent ebc4498d89
commit 4bc4e1257e
33 changed files with 3482 additions and 695 deletions

View File

@@ -550,9 +550,14 @@ function loadFXData(callback = null)
})
.then((json)=>{
fxdata = json||[];
// add default value for Solid
fxdata.shift()
fxdata.unshift(";!;");
// RFP builds return id-keyed fxdata objects so effect IDs stay stable.
if (Array.isArray(fxdata)) {
// add default value for Solid
fxdata.shift()
fxdata.unshift(";!;");
} else if (!fxdata[0]) {
fxdata[0] = ";!;";
}
})
.catch((e)=>{
fxdata = [];

View File

@@ -167,6 +167,7 @@ DMX mode:
<option value=5>Dimmer + Multi RGB</option>
<option value=6>Multi RGBW</option>
<option value=10>Preset</option>
<option value=11>Infinity Controller</option>
</select><br>
<a href="https://mm.kno.wled.ge/interfaces/e1.31-dmx/" target="_blank">E1.31 info</a><br>
Timeout: <input name="ET" type="number" min="1" max="65000" required> ms<br>
@@ -276,4 +277,4 @@ Netcat host Port:<br>
<button type="button" onclick="B()">Back</button><button type="submit">Save</button>
</form>
</body>
</html>
</html>

View File

@@ -415,9 +415,14 @@ function loadFXData(callback = null)
.then(json => {
clearErrorToast();
fxdata = json||[];
// add default value for Solid
fxdata.shift()
fxdata.unshift("@;!;");
// RFP builds return id-keyed fxdata objects so effect IDs stay stable.
if (Array.isArray(fxdata)) {
// add default value for Solid
fxdata.shift()
fxdata.unshift("@;!;");
} else if (!fxdata[0]) {
fxdata[0] = "@;!;";
}
})
.catch(function (error) {
fxdata = [];