Added handling of unknown encoder type
Some checks failed
Test And Build / Lint (push) Failing after 10s
Test And Build / Build (push) Successful in 14s

This commit is contained in:
2025-12-05 08:27:03 +01:00
parent 19c9c00b73
commit ae90b5cbe6

View File

@@ -681,6 +681,14 @@ asynStatus el734Axis::readEncoderType() {
case 4:
setAxisParamChecked(this, encoderType, AbsoluteEncoder);
break;
default:
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
"Controller \"%s\", axis %d => %s, line %d\nUnknown encoder "
"type %d. Please call the support.\n",
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
encoder_type);
setAxisParamChecked(this, motorStatusProblem, true);
return asynError;
}
return asynSuccess;
}