From e1cadbc33722946f73630d894912aea66b02574c Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 30 Apr 2023 21:00:28 +0200 Subject: [PATCH] (experimental) reduced websocket frequency fastpath: reduced websocket frequency, to have more time for physically attached LEDs. fingers crossed that this won't break anything.... --- wled00/ws.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wled00/ws.cpp b/wled00/ws.cpp index d6842f86..07900e77 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -9,7 +9,11 @@ static volatile uint16_t wsLiveClientId = 0; // WLEDMM added "static" static volatile unsigned long wsLastLiveTime = 0; // WLEDMM //uint8_t* wsFrameBuffer = nullptr; +#ifdef WLEDMM_FASTPATH +#define WS_LIVE_INTERVAL 120 // WLEDMM reduced update interval, to have more time for LEDs +#else #define WS_LIVE_INTERVAL 40 +#endif void wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t *data, size_t len) {