Skip to content

Commit

Permalink
missing now
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasandina committed Nov 22, 2023
1 parent 69a97be commit c321f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camera/timed_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def main():
print("\nRecording stopped.")
break

now = datetime.datetime.now()
# Check if it's time to stop the recording
if recording and now >= record_end_datetime:
vc.stop_recording()
Expand Down

0 comments on commit c321f4e

Please sign in to comment.