From 934ce7afd00bd7f086d4034860e0c210e9ea6036 Mon Sep 17 00:00:00 2001 From: Jim Larsson Date: Wed, 18 Dec 2024 13:16:44 +0000 Subject: [PATCH] fix compilation errors and warnings --- ADOrcaApp/src/orca.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ADOrcaApp/src/orca.cpp b/ADOrcaApp/src/orca.cpp index 443fd94..b786218 100644 --- a/ADOrcaApp/src/orca.cpp +++ b/ADOrcaApp/src/orca.cpp @@ -840,7 +840,7 @@ void Orca::imageTask() { double exposure_time, readout_time; double maxAcqusitionTime, acqusitionRate; int triggerMode = DCAMPROP_TRIGGERSOURCE__INTERNAL; - int triggerActive, triggerTimes; + int triggerActive; lock(); while (1) { @@ -994,9 +994,9 @@ void Orca::imageTask() { // getIntegerParam(hTriggerActive, &triggerActive); if (triggerActive == DCAMPROP_TRIGGERACTIVE__SYNCREADOUT) { - pass + } else if (triggerActive == DCAMPROP_TRIGGERACTIVE__LEVEL) { - pass + } else { // Checks if the elapsed time since last frame is longer than the exposure, // stop waiting for image and put in timeout status.