Skip to content

Commit

Permalink
barrier only when not in capture testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Nov 4, 2024
1 parent 7780445 commit 107156b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wigglecam/services/backends/cameras/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ def _camera_fun(self):
logger.warning(f"camera timed out: {exc}")
break

self._current_timestampset.camera = picam_metadata["SensorTimestamp"]
self._current_timestampset.camera = picam_metadata["SensorTimestamp"]

try:
self._barrier.wait()
except BrokenBarrierError:
logger.debug("sync barrier broke")
break
try:
self._barrier.wait()
except BrokenBarrierError:
logger.debug("sync barrier broke")
break

logger.info("_camera_fun left")

0 comments on commit 107156b

Please sign in to comment.