Skip to content

Commit

Permalink
max is faster than MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Jul 13, 2023
1 parent 99def64 commit 9243b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/ws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9243b90

Please sign in to comment.