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

@@ -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 = [];