diff --git a/CHANGELOG.md b/CHANGELOG.md index d83f625f0e..6895caf357 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,17 @@ ### Builds after release 0.12.0 +#### Build 2202030 + +- Switched to binary format for WebSockets peek (PR #2516) +- Playlist bugfix +- Added `extractModeName()` utility function +- Added serial out (PR #2517) +- Added configurable baud rate + #### Build 2201260 -- Initial ESP32-C3 and ESP32-S2 support (PRs #2452, ) +- Initial ESP32-C3 and ESP32-S2 support (PRs #2452, #2454, #2502) - Full segment sync (PR #2427) - Allow overriding of color order by ranges (PR #2463) - Added white channel to Peek diff --git a/wled00/wled.h b/wled00/wled.h index b34ed7972a..17eaaa7a2d 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2201280 +#define VERSION 2202030 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG diff --git a/wled00/ws.cpp b/wled00/ws.cpp index 99cdf4ff11..5d26a07c6e 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -131,7 +131,7 @@ bool sendLiveLedsWs(uint32_t wsClient) if (!wsc || wsc->queueLength() > 0) return false; //only send if queue free uint16_t used = strip.getLengthTotal(); - uint16_t n = (used/MAX_LIVE_LEDS_WS) +1; //only serve every n'th LED if count over MAX_LIVE_LEDS_WS + uint16_t n = ((used -1)/MAX_LIVE_LEDS_WS) +1; //only serve every n'th LED if count over MAX_LIVE_LEDS_WS AsyncWebSocketMessageBuffer * wsBuf = ws.makeBuffer(2 + (used*3)/n); if (!wsBuf) return false; //out of memory uint8_t* buffer = wsBuf->get();