From 2f83060ec145636ad949d89534c129453b1b06e6 Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 14 May 2025 16:26:55 +0200 Subject: [PATCH] Addes error message for failing to enable / disable within timeout --- src/turboPmacAxis.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index 2440bf7..436239a 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -1341,6 +1341,12 @@ asynStatus turboPmacAxis::enable(bool on) { // Output message to user snprintf(command, sizeof(command), "Failed to %s within %d seconds", on ? "enable" : "disable", timeout_enable_disable); + pl_status = setStringParam(pC_->motorMessageText(), command); + if (pl_status != asynSuccess) { + return pC_->paramLibAccessFailed(pl_status, "motorMessageText_", + axisNo_, __PRETTY_FUNCTION__, + __LINE__); + } return asynError; }