forked from epics_driver_modules/motorBase
motor: fixed return status for deferred moves in the XPS driver. This prevents error being sent to IOC console.
This commit is contained in:
1 parent
891a88c622
commit
048fa5f0f4
1 file changed
+4
@@ -814,6 +814,8 @@ static int motorAxisSetDouble(AXIS_HDL pAxis, motorAxisParam_t function, double
|
||||
if (status) {
|
||||
PRINT(pAxis->logParam, MOTOR_ERROR, "Deferred moved failed on XPS %d, status=%d\n", pAxis->card, status);
|
||||
ret_status = MOTOR_AXIS_ERROR;
|
||||
} else {
|
||||
ret_status = MOTOR_AXIS_OK;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -876,6 +878,8 @@ static int motorAxisSetInteger(AXIS_HDL pAxis, motorAxisParam_t function, int va
|
||||
if (status) {
|
||||
PRINT(pAxis->logParam, MOTOR_ERROR, "Deferred moved failed on XPS %d, status=%d\n", pAxis->card, status);
|
||||
ret_status = MOTOR_AXIS_ERROR;
|
||||
} else {
|
||||
ret_status = MOTOR_AXIS_OK;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user