Merge pull request #50 from pheest/master

Only call SetVSAmplitude if the camera supports it. (Issue #49)
This commit is contained in:
Mark Rivers
2022-02-10 06:40:38 -06:00
committed by GitHub

View File

@@ -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: