Skip to content

Commit

Permalink
Add log message when dropping first frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ivalaginja committed Apr 22, 2024
1 parent 4e07258 commit a3b2a1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions catkit2/services/hamamatsu_camera/hamamatsu_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def acquisition_loop(self):
if self.cam.buf_getframedata(-2) is False:
# If there is no second to last frame, it means we just acquired the first frame.
# In this case, drop the current frame since it always contains systematic errors.
self.log.info('Dropping first camera frame')
continue

img = self.cam.buf_getlastframedata()
Expand Down

0 comments on commit a3b2a1f

Please sign in to comment.