From afc92bde3f49295bcb6aa4daccd4e827eb2363e3 Mon Sep 17 00:00:00 2001 From: koennecke Date: Thu, 12 May 2022 09:31:22 +0200 Subject: [PATCH] Improved status reporting --- sinqEPICSApp/src/pmacAxis.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;