Moved line back to fix status update problem.

This commit is contained in:
2024-06-21 16:07:54 -05:00
parent c930a77811
commit 29a78e1023

View File

@@ -299,7 +299,6 @@ asynStatus MD90Axis::poll(bool *moving)
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue); sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
driveOn = (replyValue == '1') ? 1:0; driveOn = (replyValue == '1') ? 1:0;
setIntegerParam(pC_->motorStatusPowerOn_, driveOn); setIntegerParam(pC_->motorStatusPowerOn_, driveOn);
setIntegerParam(pC_->motorStatusProblem_, 0);
// Read the home status // Read the home status
sprintf(pC_->outString_, "GHS"); sprintf(pC_->outString_, "GHS");
@@ -375,6 +374,8 @@ asynStatus MD90Axis::poll(bool *moving)
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue); sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
setDoubleParam(pC_->motorIGain_, replyValue); setDoubleParam(pC_->motorIGain_, replyValue);
setIntegerParam(pC_->motorStatusProblem_, 0);
skip: skip:
setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0); setIntegerParam(pC_->motorStatusProblem_, comStatus ? 1:0);
callParamCallbacks(); callParamCallbacks();