diff --git a/src/schild.ino b/src/schild.ino index 5ecb8be..96b93c2 100644 --- a/src/schild.ino +++ b/src/schild.ino @@ -62,6 +62,7 @@ bool onSetBrightness(const HomieRange& range, const String& value){ bool onSetEffect(const HomieRange& range, const String& value){ effect = value; + effect.toLowerCase(); i=0,j=0,wait=50; stripNode.setProperty("effect").send(value); } @@ -141,7 +142,7 @@ void loopHandler() { j=0; } } - else if (effect == "rainbowCycle") { + else if (effect == "rainbowcycle") { if(j<256*5) { if(i