From c1df82676c29a22766963877fee25bee3bbb4261 Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 2 Jul 2026 13:56:22 +0200 Subject: [PATCH] Emergency stop is now counted as "Axis disabled" This prevents sending another command while the motor is in emergency stop and also provides a pop-up window on NICOS "for free". --- src/turboPmacAxis.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index 476005c..f301f67 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -425,8 +425,9 @@ asynStatus turboPmacAxis::doPoll(bool *moving) { // Update the enablement PV, if we are not in the middle of a enabling / // disabling procedure. if (!(pTurboPmacA_->enableDisable)) { - setAxisParamChecked(this, motorEnableRBV, - (axStatus != -3 && axStatus != -5)); + setAxisParamChecked( + this, motorEnableRBV, + (axStatus != -3 && axStatus != -4 && axStatus != -5)); } // Create the unique callsite identifier manually so it can be used