Backup RFP Infinity controller state before Resolume changes
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user