Update gentle-wake-up.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Wed, 14 Aug 2019 01:36:58 +0000 (18:36 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Wed, 14 Aug 2019 01:36:58 +0000 (18:36 -0700)
official/gentle-wake-up.groovy

index df52af2ef324ba1e16765355f2dd29604c05685c..0c863a471e80063582595c06ca508bf76b6dad80 100755 (executable)
@@ -559,8 +559,12 @@ def updateDimmers(percentComplete) {
                        dimmer.off()
 
                } else {
-
-                       def shouldChangeColors = (colorize && colorize != "false")
+                       
+                       def shouldChangeColors = (colorize != "false")
+                       if (colorize == "false")
+                               colorize = "true"
+                       else
+                               colorize = "false"
 
                        if (shouldChangeColors/*&& hasSetColorCommand(dimmer)*/) {
                                def hue = getHue(dimmer, nextLevel)