From 3a91cc308139a4ec5e8aff09f6f5eb2f81969249 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(-) 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