From 0618ed16a781af9d69a6333e74a610be06fae2dc Mon Sep 17 00:00:00 2001 From: Juergen Jung Date: Sun, 29 Jan 2017 00:43:06 +0100 Subject: [PATCH] Change some stuff --- src/schild.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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