summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-03-24 16:38:48 -0700
committeriximeow <me@iximeow.net>2019-03-24 16:38:48 -0700
commita4d1f3e0ca4c9d686b8bac0871035cd11920b45c (patch)
treee339d22996928bc217afc679d2fc080aaadf4208 /src
parent261390c387280584ec1cb08daefc9a7658209734 (diff)
fix issue with gain, looks like live/single frame mode are swapped?
Diffstat (limited to 'src')
-rw-r--r--src/qhyccd/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qhyccd/mod.rs b/src/qhyccd/mod.rs
index a7fb784..654d743 100644
--- a/src/qhyccd/mod.rs
+++ b/src/qhyccd/mod.rs
@@ -62,7 +62,7 @@ pub fn acquire(camera_idx: i32) -> Result<Camera> {
println!("Failed to open the device");
return Err(CameraError::QHYError);
}
- check(QHYCCDCam::SetQHYCCDStreamMode(handle, 0))?; // 0 means single frame mode...
+ check(QHYCCDCam::SetQHYCCDStreamMode(handle, 1))?; // 0 means single frame mode...
check(QHYCCDCam::InitQHYCCD(handle))?;
check(QHYCCDCam::CancelQHYCCDExposingAndReadout(handle))?;
Ok(Camera {