From 94edef6cd8bb1886cafbddfa5b8614b4c11d0d30 Mon Sep 17 00:00:00 2001 From: smathis Date: Fri, 16 May 2025 11:29:38 +0200 Subject: [PATCH] New error message always results in status problem Previously, a new error message did not automatically result in a status problem being shown. This patch fixes that. --- src/detectorTowerController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detectorTowerController.cpp b/src/detectorTowerController.cpp index fc96c61..3909e11 100644 --- a/src/detectorTowerController.cpp +++ b/src/detectorTowerController.cpp @@ -838,7 +838,8 @@ asynStatus detectorTowerController::pollDetectorAxes( getStringParam(angleAxisNo, motorMessageText(), sizeof(waitingErrorMessage), waitingErrorMessage); - if (error != 0 || waitingErrorMessage[0] != '\0') { + if (error != 0 || errorMessage[0] != '\0' || + waitingErrorMessage[0] != '\0') { plStatus = angleAxis->setIntegerParam(motorStatusProblem(), true); if (plStatus != asynSuccess) {