X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=scripts%2Fchristmas.py;h=9f493320037980db2d2f1df6a19c7045c9c32338;hp=ae8c18466cfd15bda8c0e8647d17851b8741f9ff;hb=2f194b3fe82009a77b79021f0c57e6ca55c1706f;hpb=dad024ae410398fbf60b75619545e9ee4ab9dad3 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