areaDetector/ADAndor

Only call SetVSAmplitude if the camera supports it.

Opened this issue · 3 comments

Commit 5e34010 from @pheest added code that unconditionally calls SetVSAmplitude. This fails on cameras that don't support that call.

@pheest is there a way to determine if SetVSAmplitude is supported on a given camera, and skip that block if it is?

See #48 for some details.

The required code fragment would be:
if ((mCapabilities.ulSetFunctions & AC_SETFUNCTION_VSAMPLITUDE) != 0)
{
asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW,
"%s:%s:, SetVSAmplitude(%d)\n",
driverName, functionName, verticalShiftAmplitude);
checkStatus(SetVSAmplitude(verticalShiftAmplitude));
}