Fix robust capture logic to break on success
This commit is contained in:
parent
29518e9cb9
commit
9dbdad4f8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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. "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue