summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-07-23 21:43:46 -0700
committeriximeow <me@iximeow.net>2019-07-23 21:43:46 -0700
commit3a91cc308139a4ec5e8aff09f6f5eb2f81969249 (patch)
tree940dffe72a74bac22c9f6f2dff77df65b322b388 /src
parent1af8e5a324fe55aaaac978c78c7b3cf4408496e9 (diff)
had qhy enum results backwards
Diffstat (limited to 'src')
-rw-r--r--src/qhyccd/QHYCCDCam.rs4
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);