fix: Improve logs if camera is not connected
This commit is contained in:
@@ -259,7 +259,7 @@ class Camera:
|
||||
def get_image_data(self) -> np.ndarray | None:
|
||||
"""Get the image data from the camera."""
|
||||
if not self._connected:
|
||||
self._rate_limited_warning_log("Camera is not connected.")
|
||||
self._rate_limited_warning_log(f"Camera with id {self.camera_id} is not connected.")
|
||||
return None
|
||||
array = self.ueye.get_data(
|
||||
self.cam.pc_image_mem,
|
||||
|
||||
Reference in New Issue
Block a user