From 363106446971d6a247fc020242bd810b664d43ac Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 15 Jul 2026 11:03:57 +0200 Subject: [PATCH] Fixed wrong reset of motorStatusHomed flag The previous code wrongfully resetted the motorStatusHomed flag when starting a movement / homing maneuver. This change corrects that behaviour - motorStatusHomed should only be set to false by the motor controller when it explicitly knows the axis to be unhomed (avoid false positives!). --- src/sinqAxis.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sinqAxis.cpp b/src/sinqAxis.cpp index accce7e..7e43a06 100644 --- a/src/sinqAxis.cpp +++ b/src/sinqAxis.cpp @@ -367,7 +367,6 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity, // Since the move command was successfull, we assume that the motor has // started its movement. - setAxisParamChecked(this, motorStatusHomed, false); setAxisParamChecked(this, motorStatusAtHome, false); // Needed for adaptive polling @@ -398,7 +397,6 @@ asynStatus sinqAxis::home(double minVelocity, double maxVelocity, if (status == asynSuccess) { setAxisParamChecked(this, motorStatusHome, true); - setAxisParamChecked(this, motorStatusHomed, false); setAxisParamChecked(this, motorStatusAtHome, false); pSinqA_->wasMoving = true;