From 9a32532c224cebd38df847687f760ddb718e8126 Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 17 Sep 2025 10:24:07 +0200 Subject: [PATCH] Expanded error messageto give users the ability to help themselves --- src/sinqAxis.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/sinqAxis.cpp b/src/sinqAxis.cpp index e936648..7772476 100644 --- a/src/sinqAxis.cpp +++ b/src/sinqAxis.cpp @@ -482,9 +482,9 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) { "vmax=%lf.\n", pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, vbas, vmax); - setAxisParamChecked( - this, motorMessageText, - "Lower speed limit must not be smaller than upper speed limit"); + setAxisParamChecked(this, motorMessageText, + "Lower speed limit must not be smaller than " + "upper speed limit. Please call the support."); return asynError; } if (velo < vbas || velo > vmax) { @@ -495,8 +495,10 @@ asynStatus sinqAxis::setVeloFields(double velo, double vbas, double vmax) { pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, velo, vbas, vmax); - setAxisParamChecked(this, motorMessageText, - "Speed is not inside limits"); + setAxisParamChecked( + this, motorMessageText, + "Speed is not inside limits. Set a new valid speed and try " + "moving. Otherwise, please call the support."); return asynError; }