Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 87ccc41

Browse files
author
techyian
committed
Fixing broken build
1 parent 0bc3731 commit 87ccc41

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/MMALSharp/MMALCamera.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,11 @@ public async Task TakeRawPicture(ICaptureHandler handler)
140140
throw new PiCameraError("A connection was found to the Camera still port. No encoder should be connected to the Camera's still port for raw capture.");
141141
}
142142

143-
this.Camera.Handler = handler ?? throw new PiCameraError("No handler specified");
144-
143+
if (handler == null)
144+
{
145+
throw new PiCameraError("No handler specified");
146+
}
147+
145148
this.CheckPreviewComponentStatus();
146149

147150
//Enable the image encoder output port.

0 commit comments

Comments
 (0)