Improved status reporting

This commit is contained in:
2022-05-12 09:31:22 +02:00
committed by brambilla_m
parent 8e2c1af10e
commit afc92bde3f

View File

@ -926,10 +926,12 @@ asynStatus pmacV3Axis::getAxisStatus(bool *moving) {
cmdStatus, command, response);
updateMsgTxtFromDriver("Cannot read Axis position and status");
}
pmacV3Controller *p3C_ = (pmacV3Controller *)pC_;
IsEnable = axStat != -3;
asynStatus st = setIntegerParam(p3C_->axisEnabled_, axStat >= 0);
printf("axis %d: position=%lf axStat=%d IsEnable=%d\n", axisNo_, position,
axStat, IsEnable);
asynStatus st = setIntegerParam(p3C_->axisEnabled_, IsEnable);
cmdStatus = cmdStatus > st ? cmdStatus : st;
int direction = 0;