From: rtrimana Date: Thu, 25 Jul 2019 22:27:35 +0000 (-0700) Subject: Removing/commenting out evt variable that was causing a state explosion. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b10e92c8b054d930453dcb73dda257af1fefd0d;p=smartthings-infrastructure.git Removing/commenting out evt variable that was causing a state explosion. --- diff --git a/GlobalVariables/GlobalVariablesBothApps.groovy b/GlobalVariables/GlobalVariablesBothApps.groovy index 6621df4..f3f944a 100644 --- a/GlobalVariables/GlobalVariablesBothApps.groovy +++ b/GlobalVariables/GlobalVariablesBothApps.groovy @@ -7,7 +7,7 @@ //Object for touch to call function @Field def appObject = new Touched(sendEvent, 0) //Create a global list for events -@Field def evt = [] +//@Field def evt = [] //Global Object for class Touch Sensor! @Field def touchSensorObject = new NfcTouch(sendEvent, 1) //Global Object for class switch! diff --git a/Methods/eventHandler.groovy b/Methods/eventHandler.groovy index 4df7675..4475bc2 100644 --- a/Methods/eventHandler.groovy +++ b/Methods/eventHandler.groovy @@ -13,7 +13,7 @@ def eventHandler(LinkedHashMap eventDataMap) { for (int i = 0;i < app2.eventList.size();i++) { if (app2.eventList[i] == name) { def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data) - evt.add(event) + //evt.add(event) app2.functionList[i](event) } } @@ -21,7 +21,7 @@ def eventHandler(LinkedHashMap eventDataMap) { for (int i = 0;i < app1.eventList.size();i++) { if (app1.eventList[i] == name) { def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data) - evt.add(event) + //evt.add(event) app1.functionList[i](event) } }