Added handling of unknown encoder type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user