Added error message

This commit is contained in:
2026-03-06 14:25:46 +01:00
parent a84992b4cd
commit 92c264d0f6
+4
View File
@@ -364,6 +364,10 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity,
getAxisParamChecked(this, encoderType, &encType);
getAxisParamChecked(this, motorStatusHomed, &motorStatHomed);
if (strcmp(encType, IncrementalEncoder) == 0 && motorStatHomed == 0) {
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
"Controller \"%s\", axis %d => %s, line "
"%d:\nAxis needs to be homed first.\n",
pC_->portName, axisNo(), __PRETTY_FUNCTION__, __LINE__);
setAxisParamChecked(this, motorErrorMessage,
"Motor needs to be homed first.");
return asynError;