From 1d662ecd43826cd4530157fd12abd7fa750effdb Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 11 Feb 2026 11:08:46 +0100 Subject: [PATCH] Use safe limit setter function from sinqMotor --- src/turboPmacAxis.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index a32fe38..b66af83 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -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);