From 9cb761930e158a159681194734f0d1b925ec2ed6 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Fri, 15 Mar 2019 16:40:04 -0700 Subject: cancel any existing exposure/readout operation on camera connection --- src/qhyccd/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qhyccd/mod.rs') diff --git a/src/qhyccd/mod.rs b/src/qhyccd/mod.rs index 192b943..0ce31e2 100644 --- a/src/qhyccd/mod.rs +++ b/src/qhyccd/mod.rs @@ -64,6 +64,7 @@ pub fn acquire(camera_idx: i32) -> Result { } check(QHYCCDCam::SetQHYCCDStreamMode(handle, 0))?; // 0 means single frame mode... check(QHYCCDCam::InitQHYCCD(handle))?; + check(QHYCCDCam::CancelQHYCCDExposingAndReadout(handle))?; Ok(Camera { handle: handle }) -- cgit v1.1