Set axis index even if not valid (for alarm to work).

This commit is contained in:
2024-04-30 16:01:35 +02:00
parent 54043bba44
commit 64a651cc23

View File

@@ -966,7 +966,7 @@ int ecmcMotionPlg::setAxis(int axisId) {
//set old value again
setParamAlarmStatus(asynAxisId_,1);
setParamAlarmSeverity(asynAxisId_,1);
setIntegerParam(asynAxisId_, (epicsInt32)cfgAxisIndex_);
setIntegerParam(asynAxisId_, (epicsInt32)axisId); // Set anyway to make alarms colors valid for correct index
callParamCallbacks();
return ECMC_PLUGIN_MOTION_ERROR_AXIS_OUT_OF_RANGE;
}