Skip to content

Commit

Permalink
Avoid generating zeros on single-frame timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 4, 2023
1 parent a2dcb5e commit c87c4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rockit/camera/qhy/qhyprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def __run_exposure_sequence(self, quiet):
log.error(self._config.log_name, f'Failed to download frame ({status})')
break

if self._stop_acquisition or self._processing_stop_signal.value:
if self._stop_acquisition or self._processing_stop_signal.value or status != QHYStatus.Success:
# Return unused slot back to the queue to simplify cleanup
self._processing_framebuffer_offsets.put(framebuffer_offset)
break
Expand Down

0 comments on commit c87c4c9

Please sign in to comment.