In process() the udf field is set to false when dbGetLink returns
success only if dol is not a constant link.
This commit is contained in:
@@ -103,7 +103,7 @@ static long process(pdfanout)
|
||||
if (!pdfanout->pact && pdfanout->omsl == CLOSED_LOOP){
|
||||
status = dbGetLink(&(pdfanout->dol),
|
||||
DBR_LONG,&(pdfanout->val),0,0);
|
||||
if(RTN_SUCCESS(status)) pdfanout->udf=FALSE;
|
||||
if(pdfanout->dol.type!=CONSTANT && RTN_SUCCESS(status)) pdfanout->udf=FALSE;
|
||||
}
|
||||
|
||||
pdfanout->pact = TRUE;
|
||||
|
||||
@@ -168,7 +168,7 @@ static long process(plongout)
|
||||
if (!plongout->pact && plongout->omsl == CLOSED_LOOP) {
|
||||
status = dbGetLink(&(plongout->dol),DBR_LONG,
|
||||
&(plongout->val),0,0);
|
||||
if (RTN_SUCCESS(status))
|
||||
if (plongout->dol.type!=CONSTANT && RTN_SUCCESS(status))
|
||||
plongout->udf=FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user