Compare commits

...

2 Commits

Author SHA1 Message Date
a0b674b26e Made some functions virtual so they can be overwritten 2025-05-15 14:24:53 +02:00
e088bfbbcb Added initial value for motorMessageText 2025-05-15 11:39:47 +02:00
2 changed files with 16 additions and 1 deletions

View File

@@ -205,6 +205,21 @@ sinqAxis::sinqAxis(class sinqController *pC, int axisNo)
exit(-1);
}
/*
Initialize the parameter library entry for the motor message text, because
it is read during the first poll before it has been written to.
*/
status = setStringParam(pC_->motorMessageText(), "");
if (status != asynSuccess) {
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
"Controller \"%s\", axis %d => %s, line %d:\nFATAL ERROR "
"(setting a parameter value failed "
"with %s)\n. Terminating IOC",
pC->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
pC_->stringifyAsynStatus(status));
exit(-1);
}
// Motor is assumed to be enabled
status = setIntegerParam(pC_->motorEnableRBV(), 1);
if (status != asynSuccess) {

View File

@@ -170,7 +170,7 @@ class epicsShareClass sinqAxis : public asynMotorAxis {
*
* @return asynStatus
*/
asynStatus reset();
virtual asynStatus reset();
/**
* @brief Implementation of the "proper", device-specific `reset` method.