diff --git a/pixelprojektor/NeoPatterns.cpp b/pixelprojektor/NeoPatterns.cpp index a9c377e..cc34c06 100644 --- a/pixelprojektor/NeoPatterns.cpp +++ b/pixelprojektor/NeoPatterns.cpp @@ -183,6 +183,7 @@ void NeoPatterns::Scanner(uint32_t color1, uint8_t interval, bool colorful, bool Interval = interval; TotalSteps = (numPixels() - 1) * 2; Color1 = color1; + Color2 = color1; Index = 0; wPos = 0; this->colorful = colorful; diff --git a/pixelprojektor/pixelprojektor.ino b/pixelprojektor/pixelprojektor.ino index 7377b95..7cf445c 100644 --- a/pixelprojektor/pixelprojektor.ino +++ b/pixelprojektor/pixelprojektor.ino @@ -116,10 +116,11 @@ bool onSetEffect(const HomieRange& range, const String& value) { strip.RandomFadeSingle(p1); } else { + effect = "none"; strip.None(); } } - homieNode.setProperty("effect").send(value); + homieNode.setProperty("effect").send(effect); } bool onSetIcon(const HomieRange& range, const String& value) {