diff options
author | iximeow <me@iximeow.net> | 2019-07-23 21:43:46 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2019-07-23 21:43:46 -0700 |
commit | c1c7562bfcfa500e92f3a398c2461f1e0769e48e (patch) | |
tree | 940dffe72a74bac22c9f6f2dff77df65b322b388 /src | |
parent | 4541bebe3cfa5536bf9cd5bfaf76d81a9add0e1f (diff) |
had qhy enum results backwards
Diffstat (limited to 'src')
-rw-r--r-- | src/qhyccd/QHYCCDCam.rs | 4 |
1 files 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<u32> 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); |