From: Erik Andresen Date: Sat, 30 Jun 2018 08:49:40 +0000 (+0200) Subject: christmas: fix stop time X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=db4844a011c439b1490695612ec20756cd5a4496;p=ros_wild_thumper.git christmas: fix stop time --- 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