summaryrefslogtreecommitdiff
path: root/src/qhyccd
diff options
context:
space:
mode:
Diffstat (limited to 'src/qhyccd')
-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);