Use safe limit setter function from sinqMotor
This commit is contained in:
@@ -582,8 +582,10 @@ asynStatus turboPmacAxis::doPoll(bool *moving) {
|
||||
getAxisParamChecked(this, limFromHardware, &limFromHardware);
|
||||
|
||||
if (limFromHardware != 0) {
|
||||
setAxisParamChecked(this, motorHighLimitFromDriver, highLimit);
|
||||
setAxisParamChecked(this, motorLowLimitFromDriver, lowLimit);
|
||||
status = setLimits(highLimit, lowLimit);
|
||||
if (status != asynSuccess) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
status = setMotorPosition(currentPosition);
|
||||
|
||||
Reference in New Issue
Block a user