Address issues reported

This commit is contained in:
Blaž Kristan
2025-04-26 20:08:15 +02:00
parent 7f2b6a3f10
commit c934776f45
14 changed files with 86 additions and 67 deletions

View File

@@ -833,8 +833,8 @@ class WS2812FX {
_length(DEFAULT_LED_COUNT),
_transitionDur(750),
_frametime(FRAMETIME_FIXED),
_cumulativeFps(WLED_FPS << FPS_CALC_SHIFT),
_targetFps(WLED_FPS),
_cumulativeFps(WLED_FPS),
_isServicing(false),
_isOffRefreshRequired(false),
_hasWhiteChannel(false),
@@ -845,7 +845,8 @@ class WS2812FX {
_callback(nullptr),
customMappingTable(nullptr),
customMappingSize(0),
_lastShow(0)
_lastShow(0),
_lastServiceShow(0)
{
_mode.reserve(_modeCount); // allocate memory to prevent initial fragmentation (does not increase size())
_modeData.reserve(_modeCount); // allocate memory to prevent initial fragmentation (does not increase size())
@@ -1011,8 +1012,8 @@ class WS2812FX {
uint16_t _transitionDur;
uint16_t _frametime;
uint16_t _cumulativeFps;
uint8_t _targetFps;
uint8_t _cumulativeFps;
// will require only 1 byte
struct {