From 96aef8af8fec104181cf4ecca9d05a1120821eab Mon Sep 17 00:00:00 2001 From: "Heesterman, Peter J" Date: Thu, 10 Feb 2022 08:38:22 +0000 Subject: [PATCH] Only call SetVSAmplitude if the camera supports it. (Issue #49) --- andorApp/src/andorCCD.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/andorApp/src/andorCCD.cpp b/andorApp/src/andorCCD.cpp index dbfa10c8..d06801ee 100755 --- a/andorApp/src/andorCCD.cpp +++ b/andorApp/src/andorCCD.cpp @@ -1409,10 +1409,13 @@ asynStatus AndorCCD::setupAcquisition() driverName, functionName, verticalShiftPeriod); checkStatus(SetVSSpeed(verticalShiftPeriod)); - asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW, - "%s:%s:, SetVSAmplitude(%d)\n", - driverName, functionName, verticalShiftAmplitude); - checkStatus(SetVSAmplitude(verticalShiftAmplitude)); + if ((mCapabilities.ulSetFunctions & AC_SETFUNCTION_VSAMPLITUDE) != 0) + { + asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW, + "%s:%s:, SetVSAmplitude(%d)\n", + driverName, functionName, verticalShiftAmplitude); + checkStatus(SetVSAmplitude(verticalShiftAmplitude)); + } switch (imageMode) { case ADImageSingle: