From ac17ddf94cd8583146f4fa6086708f9e50fc395f Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 24 Mar 2019 16:38:48 -0700 Subject: fix issue with gain, looks like live/single frame mode are swapped? --- src/qhyccd/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { 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 { -- cgit v1.1