forked from wled/WLED
-
-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Whenever /presets.json is retrieved, my leds flicker partially in random colors. This is mostly detectable if there is HomeAssistant in the network, which polls /presets.json every 10 seconds.
To Reproduce Bug
curl <IP>/presets.json
Expected Behavior
No flickering
Install Method
Self-Compiled or other
What version/release of MM WLED?
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
Anything else?
I've bisected the regression to a7aa9eb
Before this commit, the I can see the effect pause a momentarily (akin to skipping some frames) when /presets.json is accessed. After this commit, garbage gets rendered.
I also tried to see if sending the files in smaller chunks to see if that would help. I mutated the async file response as follows. This made downloading slow but did not fix the flickering. So this one is a dead end:
size_t AsyncFileResponse::_fillBuffer(uint8_t *data, size_t len){
+ len = std::min(len, (size_t)128);
return _content.read(data, len);
}Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working