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();