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.
This commit is contained in:
2025-05-16 11:29:38 +02:00
parent afdd66a648
commit 94edef6cd8

View File

@@ -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) {