Fix robust capture logic to break on success

This commit is contained in:
Julian Stirling 2026-06-03 17:25:35 +01:00
parent 29518e9cb9
commit 9dbdad4f8c

View file

@ -638,7 +638,7 @@ class BaseCamera(OFMThing, ABC):
image = self._capture_image(capture_mode=capture_mode) image = self._capture_image(capture_mode=capture_mode)
success = True success = True
continue break
except TimeoutError: except TimeoutError:
self.logger.warning( self.logger.warning(
f"Attempt {capture_attempts + 1} to capture image timed out. " f"Attempt {capture_attempts + 1} to capture image timed out. "