Fixed a bug with inproperly cleared MsgTxt in SINQAxis

Extended pmacAxis to properly deal with HRPT pmac motors which have an extra error condition
This commit is contained in:
2019-05-13 12:03:24 +02:00
parent 3bea34700e
commit f424477a6a
8 changed files with 89 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ SINQAxis::SINQAxis(class SINQController *pC, int axis)
: asynMotorAxis((asynMotorController *)pC, axis),
pC_(pC)
{
updateMsgTxtFromDriver("");
}
@@ -22,6 +23,7 @@ void SINQAxis::updateMsgTxtFromDriver(const char *value)
setStringParam(pC_->motorMessageText_,value);
} else {
pC_->setIntegerParam(axisNo_,pC_->motorMessageIsFromDriver_, 0);
setStringParam(pC_->motorMessageText_,"");
}
}