Fix: output-glitching on ESPNow remote command reception

Processing of received button command is no longer processed in the callback, instead the value is saved to a variable and processed in the main loop.
The actual fix is to not access the file system while data is being sent out: even just trying to open a non-existing file causes glitches on the C3. Waiting for the bus to finish fixes this BUT it causes a frame-delay which is the lesser evil than random color flashes.
This commit is contained in:
Damian Schneider
2024-12-13 07:40:04 +01:00
parent 2c58a87982
commit e16d3bf040
3 changed files with 20 additions and 3 deletions

View File

@@ -84,6 +84,9 @@ void WLED::loop()
#ifndef WLED_DISABLE_INFRARED
handleIR();
#endif
#ifndef WLED_DISABLE_ESPNOW
processESPNowButton();
#endif
#ifndef WLED_DISABLE_ALEXA
handleAlexa();
#endif