From 29a78e1023ea691807945d7f1e8bbea058796a9c Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Fri, 21 Jun 2024 16:07:54 -0500 Subject: [PATCH] Moved line back to fix status update problem. --- dsmApp/src/MD90Driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsmApp/src/MD90Driver.cpp b/dsmApp/src/MD90Driver.cpp index 6aaf1ef..e8a45de 100644 --- a/dsmApp/src/MD90Driver.cpp +++ b/dsmApp/src/MD90Driver.cpp @@ -299,7 +299,6 @@ asynStatus MD90Axis::poll(bool *moving) sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue); driveOn = (replyValue == '1') ? 1:0; setIntegerParam(pC_->motorStatusPowerOn_, driveOn); - setIntegerParam(pC_->motorStatusProblem_, 0); // Read the home status sprintf(pC_->outString_, "GHS"); @@ -375,6 +374,8 @@ asynStatus MD90Axis::poll(bool *moving) sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue); setDoubleParam(pC_->motorIGain_, replyValue); + setIntegerParam(pC_->motorStatusProblem_, 0); + skip: setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0); callParamCallbacks();