motor: fixed return status for deferred moves in the XPS driver. This prevents error being sent to IOC console.

This commit is contained in:
mp49
2011-05-20 17:17:27 +00:00
parent 891a88c622
commit 048fa5f0f4
+4
View File
@@ -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;
}