From bff0c5aa39be2900fe7420929a2ad6bea02a2281 Mon Sep 17 00:00:00 2001
From: Seyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Date: Fri, 9 Aug 2019 11:37:10 -0700
Subject: [PATCH] Update light-follows-me.groovy

---
 official/light-follows-me.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/official/light-follows-me.groovy b/official/light-follows-me.groovy
index ddc1a0a..06f4fc1 100755
--- a/official/light-follows-me.groovy
+++ b/official/light-follows-me.groovy
@@ -60,9 +60,9 @@ def scheduleCheck() {
 	log.debug "schedule check"
 	def motionState = motion1.currentState("motion")
     if (motionState.value == "inactive") {
-        def elapsed = now() - motionState.rawDateCreated.time
-    	def threshold = 1000 * 60 * minutes1 - 1000
-    	if (elapsed >= threshold) {
+        //def elapsed = now() - motionState.rawDateCreated.time
+    	//def threshold = 1000 * 60 * minutes1 - 1000
+    	if (/*elapsed >= threshold*/true) {
             log.debug "Motion has stayed inactive long enough since last check ($elapsed ms):  turning lights off"
             switches.off()
     	} else {
-- 
2.34.1