Use safe limit setter function from sinqMotor
Some checks failed
Test And Build / Lint (push) Failing after 3s
Test And Build / Build (push) Failing after 6s

This commit is contained in:
2026-02-11 11:08:46 +01:00
parent bea68c807b
commit 1d662ecd43

View File

@@ -582,8 +582,10 @@ asynStatus turboPmacAxis::doPoll(bool *moving) {
getAxisParamChecked(this, limFromHardware, &limFromHardware); getAxisParamChecked(this, limFromHardware, &limFromHardware);
if (limFromHardware != 0) { if (limFromHardware != 0) {
setAxisParamChecked(this, motorHighLimitFromDriver, highLimit); status = setLimits(highLimit, lowLimit);
setAxisParamChecked(this, motorLowLimitFromDriver, lowLimit); if (status != asynSuccess) {
return status;
}
} }
status = setMotorPosition(currentPosition); status = setMotorPosition(currentPosition);