Skip to content

Commit 5d2f417

Browse files
The Camera should not throw NotConnected while connected
Instead when an image is not ready throw InvalidOperation
1 parent 8332542 commit 5d2f417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Camera.Simulator/Camera.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3245,7 +3245,7 @@ private void CheckReady(string identifier)
32453245
if (!imageReady)
32463246
{
32473247
Log.LogMessage(identifier, "image not ready");
3248-
throw new NotConnectedException("Can't read " + identifier + " when no image is ready");
3248+
throw new InvalidOperationException("Can't read " + identifier + " when no image is ready");
32493249
}
32503250
}
32513251

0 commit comments

Comments
 (0)