From ae90b5cbe6bb467ba0683992e95d79c157b7d6b7 Mon Sep 17 00:00:00 2001 From: smathis Date: Fri, 5 Dec 2025 08:27:03 +0100 Subject: [PATCH] Added handling of unknown encoder type --- src/el734Axis.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/el734Axis.cpp b/src/el734Axis.cpp index 5fda007..b40c2aa 100644 --- a/src/el734Axis.cpp +++ b/src/el734Axis.cpp @@ -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; }