Larson-Scanner muss zweite Farbe explizit gesetzt bekommen. Den Effekt zurücksenden, der erkannt wurde.

This commit is contained in:
starcalc 2017-04-06 21:13:45 +02:00
parent 2ded30156c
commit 135486035f
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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) {