From 9243b903451590408e6b8431c43445927dd07272 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:14:43 +0200 Subject: [PATCH] max is faster than MAX --- wled00/ws.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/ws.cpp b/wled00/ws.cpp index f679e77d..03e8ce59 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -253,7 +253,7 @@ static bool sendLiveLedsWs(uint32_t wsClient) // WLEDMM added "static" void handleWs() { - if (millis() - wsLastLiveTime > MAX((strip.getLengthTotal()/20), WS_LIVE_INTERVAL)) //WLEDMM dynamic nr of peek frames per second + if (millis() - wsLastLiveTime > max((strip.getLengthTotal()/20), WS_LIVE_INTERVAL)) //WLEDMM dynamic nr of peek frames per second { #ifdef ESP8266 ws.cleanupClients(3);