This commit is contained in:
cschwinne 2020-03-21 00:57:58 +01:00
commit f4f5d6e562

View File

@ -46,11 +46,11 @@ const uint16_t customMappingSize = sizeof(customMappingTable)/sizeof(uint16_t);
void WS2812FX::init(bool supportWhite, uint16_t countPixels, bool skipFirst) void WS2812FX::init(bool supportWhite, uint16_t countPixels, bool skipFirst)
{ {
if (supportWhite == _useRgbw && countPixels == _length) return; if (supportWhite == _useRgbw && countPixels == _length && _skipFirstMode == skipFirst) return;
RESET_RUNTIME; RESET_RUNTIME;
_useRgbw = supportWhite; _useRgbw = supportWhite;
_skipFirstMode = skipFirst;
_length = countPixels; _length = countPixels;
_skipFirstMode = skipFirst;
uint8_t ty = 1; uint8_t ty = 1;
if (supportWhite) ty = 2; if (supportWhite) ty = 2;