Updated param lib accessors to use macro to reduce boilerplate

This commit is contained in:
2025-06-18 10:19:43 +02:00
parent efccb26302
commit dde15eb30d
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,7 @@
#include "seleneGuideController.h"
#include "seleneAngleAxis.h"
#include "seleneLiftAxis.h"
#include "seleneOffsetAxis.h"
#include "turboPmacController.h"
#include <epicsExport.h>
#include <errlog.h>

View File

@ -434,19 +434,16 @@ asynStatus seleneLiftAxis::startCombinedMove() {
asynStatus seleneLiftAxis::stop(double acceleration) {
// Status of read-write-operations of ASCII commands to the controller
asynStatus rw_status = asynSuccess;
// Status of parameter library operations
asynStatus pl_status = asynSuccess;
asynStatus status = asynSuccess;
char response[pC_->MAXBUF_] = {0};
// =========================================================================
// Stop all axes
rw_status = pC_->writeRead(axisNo_, "P150=8", response, 0);
status = pC_->writeRead(axisNo_, "P150=8", response, 0);
if (rw_status != asynSuccess) {
if (status != asynSuccess) {
asynPrint(
pC_->pasynUser(), ASYN_TRACE_ERROR,
"Controller \"%s\", axis %d => %s, line %d\nStopping the movement "
@ -456,7 +453,7 @@ asynStatus seleneLiftAxis::stop(double acceleration) {
setAxisParamChecked(this, motorStatusProblem, true);
}
return rw_status;
return status;
}
asynStatus seleneLiftAxis::doReset() {