Skip to content

Commit

Permalink
Only call SetVSAmplitude if the camera supports it. (Issue areaDetect…
Browse files Browse the repository at this point in the history
  • Loading branch information
Heesterman, Peter J authored and Heesterman, Peter J committed Feb 10, 2022
1 parent ccad8dc commit 96aef8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions andorApp/src/andorCCD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 96aef8a

Please sign in to comment.