From c1c7562bfcfa500e92f3a398c2461f1e0769e48e Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 23 Jul 2019 21:43:46 -0700 Subject: had qhy enum results backwards --- src/qhyccd/QHYCCDCam.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qhyccd/QHYCCDCam.rs') diff --git a/src/qhyccd/QHYCCDCam.rs b/src/qhyccd/QHYCCDCam.rs index b5911c1..c0a0775 100644 --- a/src/qhyccd/QHYCCDCam.rs +++ b/src/qhyccd/QHYCCDCam.rs @@ -13,8 +13,8 @@ impl From for QHYResult { fn from(u: u32) -> QHYResult { match u { 0 => QHYResult::QHYCCD_SUCCESS, - 0x2000 => QHYResult::QHYCCD_READ_DIRECTLY, - 0x2001 => QHYResult::QHYCCD_DELAY_200MS, + 0x2001 => QHYResult::QHYCCD_READ_DIRECTLY, + 0x2000 => QHYResult::QHYCCD_DELAY_200MS, 0xffffffff => QHYResult::QHYCCD_ERROR, _ => { panic!("Unexpected result code from qhy sdk: {:08x}", u); -- cgit v1.1