From 4b10e92c8b054d930453dcb73dda257af1fefd0d Mon Sep 17 00:00:00 2001 From: rtrimana Date: Thu, 25 Jul 2019 15:27:35 -0700 Subject: [PATCH] Removing/commenting out evt variable that was causing a state explosion. --- GlobalVariables/GlobalVariablesBothApps.groovy | 2 +- Methods/eventHandler.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) } } -- 2.34.1