summaryrefslogtreecommitdiff
path: root/src/qhyccd/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/qhyccd/mod.rs')
-rw-r--r--src/qhyccd/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qhyccd/mod.rs b/src/qhyccd/mod.rs
index 4404ddb..a7fb784 100644
--- a/src/qhyccd/mod.rs
+++ b/src/qhyccd/mod.rs
@@ -64,6 +64,7 @@ pub fn acquire(camera_idx: i32) -> Result<Camera> {
}
check(QHYCCDCam::SetQHYCCDStreamMode(handle, 0))?; // 0 means single frame mode...
check(QHYCCDCam::InitQHYCCD(handle))?;
+ check(QHYCCDCam::CancelQHYCCDExposingAndReadout(handle))?;
Ok(Camera {
handle: handle
})