-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Description
What happened?
After just having built the master build from source, I'm experiencing a weird issue where the frontend stops working after setting my led stripe length. I have DMX enabled on this build.
After configuring my LED config with the ui it works. This is the relevant part of my working config;
"led": {
"total": 5,
"maxpwr": 8000,
"cct": false,
"cr": false,
"ic": false,
"cb": 0,
"fps": 60,
"rgbwm": 255,
"prl": false,
"ins": [
{
"start": 0,
"len": 4,
"pin": [
16
],
"order": 1,
"rev": false,
"skip": 0,
"type": 22,
"ref": false,
"rgbwm": 0,
"freq": 0,
"maxpwr": 0,
"ledma": 55,
"text": ""
},
{
"start": 4,
"len": 1,
"pin": [
18
],
"order": 1,
"rev": false,
"skip": 0,
"type": 22,
"ref": false,
"rgbwm": 0,
"freq": 0,
"maxpwr": 0,
"ledma": 255,
"text": ""
}
]
},
If I then change the length of the strip from 1 to 144, the frontend throws the following exception:
TypeError: Cannot read properties of undefined (reading 'on')
at readState ((index):7:66326)
at (index):7:71514
This points to the javascript
function readState(e, t=!1) {
if (!e)
return !1;
if (e.success)
return !0;
isOn = e.on,
gId("sliderBri").value = e.bri,
nlA = e.nl.on,
nlDur = e.nl.dur,
nlTar = e.nl.tbri,
nlFade = e.nl.fade,
Where it seems to be failing to properly read the current state.
If I revert the led length back to 1, everything functions normally again.
To Reproduce Bug
- Build WLED from source with DMX enabled
- Set led strip length to 144, from the default 30.
- Frontend no longer functions becouse of javascript exception.
Expected Behavior
Working frontend after having configured the correct led stripe length.
Install Method
Self-Compiled
What version of WLED?
WLED 0.16.0-alpha (2506160)
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct