From db4844a011c439b1490695612ec20756cd5a4496 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sat, 30 Jun 2018 10:49:40 +0200 Subject: [PATCH] christmas: fix stop time --- scripts/christmas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/christmas.py b/scripts/christmas.py index ae8c184..9f49332 100755 --- a/scripts/christmas.py +++ b/scripts/christmas.py @@ -23,7 +23,7 @@ if __name__ == "__main__": while not rospy.is_shutdown(): if light <= ldr_thres or val != 0: now = datetime.now() - if light <= ldr_thres and now.hour >= 18 and now.hour <= 22: + if light <= ldr_thres and now.hour >= 18 and now.hour < 22: val = max_val else: val = 0 -- 2.39.5