christmas: fix stop time
authorErik Andresen <erik@vontaene.de>
Sat, 30 Jun 2018 08:49:40 +0000 (10:49 +0200)
committerErik Andresen <erik@vontaene.de>
Sat, 30 Jun 2018 08:49:40 +0000 (10:49 +0200)
scripts/christmas.py

index ae8c184..9f49332 100755 (executable)
@@ -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