Skip to content

Commit

Permalink
Update extract_images_sync
Browse files Browse the repository at this point in the history
Ensure delay is compared with the sec_per_frame value as a float.
  • Loading branch information
artineering authored Jan 31, 2024
1 parent 40fcdd2 commit 4062818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image_view/scripts/extract_images_sync
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Typical command-line usage:
# Decimation is enabled if it is set to greater than
# zero. If it is enabled, exit if delay is less than
# the decimation rate specified.
if (self.sec_per_frame > 0) and (delay < self.sec_per_frame):
if (self.sec_per_frame > 0) and (delay.to_sec() < self.sec_per_frame):
return

# Update the current time
Expand Down

0 comments on commit 4062818

Please sign in to comment.