Skip to content

Commit

Permalink
#60 oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylDohner committed Jul 4, 2023
1 parent 15669d1 commit de1d600
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions EosPayload/drivers/camera_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def setup(self) -> None:
self._logger.info(f"Camera {self.camera_num} opened")
break
else:
self._logger.error(f'Unable to open camera {self.camera_num}. Retries left: {retries_left}')
self._logger.error(f"Failed to open camera {self.camera_num}. Retries left: {retries_left}")
time.sleep(3)

retries_left = 4
Expand All @@ -75,8 +75,9 @@ def setup(self) -> None:
self.out = self.video_writer_setup()
if self.out.isOpened():
self._logger.info("Video writer opened")
break
else:
self._logger.error(f"Unable to open video writer. Retries left: {retries_left}")
self._logger.error(f"Failed to open video writer. Retries left: {retries_left}")
time.sleep(3)

time.sleep(1)
Expand Down

0 comments on commit de1d600

Please sign in to comment.