Changing a bit in illuminance class!
authoramiraj <amiraj.95@uci.edu>
Fri, 9 Aug 2019 21:53:09 +0000 (14:53 -0700)
committeramiraj <amiraj.95@uci.edu>
Fri, 9 Aug 2019 21:53:09 +0000 (14:53 -0700)
IlluminanceMeasurement/IlluminanceMeasurements.groovy

index cf013ff..2345610 100644 (file)
@@ -21,11 +21,11 @@ public class IlluminanceMeasurements {
                this.illuminanceMeasurements = []
 
                if (init) {
-                       this.illuminance = 5
-                       this.currentIlluminance = 5
-               } else {
                        this.illuminance = 20000
                        this.currentIlluminance = 20000
+               } else {
+                       this.illuminance = 5
+                       this.currentIlluminance = 5
                }
 
                illuminanceMeasurements.add(new IlluminanceMeasurement(id, label, displayName, this.illuminance))