diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2019-03-15 16:40:04 -0700 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2019-03-15 16:40:04 -0700 |
commit | 9cb761930e158a159681194734f0d1b925ec2ed6 (patch) | |
tree | 8d7abdec92b1cb7d94963a56e3ea06ee69df8c59 /src/qhyccd/mod.rs | |
parent | 132d623a422e1b73f6e5d8911a82a75290637d10 (diff) |
cancel any existing exposure/readout operation on camera connection
Diffstat (limited to 'src/qhyccd/mod.rs')
-rw-r--r-- | src/qhyccd/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<Camera> { } check(QHYCCDCam::SetQHYCCDStreamMode(handle, 0))?; // 0 means single frame mode... check(QHYCCDCam::InitQHYCCD(handle))?; + check(QHYCCDCam::CancelQHYCCDExposingAndReadout(handle))?; Ok(Camera { handle: handle }) |