Merge pull request #784 from TravisDean/fix-skip-first

Fix initialization bug when toggling skip first.
pull/787/head
Aircoookie 2020-03-19 19:18:16 +01:00 zatwierdzone przez GitHub
commit 5028471598
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -29,11 +29,11 @@
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;
_useRgbw = supportWhite;
_skipFirstMode = skipFirst;
_length = countPixels;
_skipFirstMode = skipFirst;
uint8_t ty = 1;
if (supportWhite) ty = 2;