diff --git a/sinqEPICSApp/src/pmacAxis.cpp b/sinqEPICSApp/src/pmacAxis.cpp index 58500ea..3f81966 100644 --- a/sinqEPICSApp/src/pmacAxis.cpp +++ b/sinqEPICSApp/src/pmacAxis.cpp @@ -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;