Reset nRequest to 1
This commit is contained in:
@@ -304,6 +304,7 @@ struct dfanoutRecord *pdfanout;
|
||||
long status;
|
||||
|
||||
for(i=0, plink=&(pdfanout->outa); i<OUT_ARG_MAX; i++, plink++) {
|
||||
nRequest=1;
|
||||
status=recGblPutLinkValue(plink,(void *)pdfanout,DBR_LONG,
|
||||
&(pdfanout->val),&nRequest);
|
||||
if (!RTN_SUCCESS(status)) return(-1);
|
||||
|
||||
@@ -387,6 +387,7 @@ struct gsubRecord *psub;
|
||||
long status;
|
||||
|
||||
for(i=0, plink=&psub->inpa, pvalue=&psub->a; i<ARG_MAX; i++, plink++, pvalue++) {
|
||||
nRequest=1;
|
||||
status=recGblGetLinkValue(plink,(void *)psub,DBR_FLOAT,
|
||||
pvalue,&options,&nRequest);
|
||||
if (!RTN_SUCCESS(status)) return(-1);
|
||||
|
||||
@@ -301,6 +301,7 @@ static long readValue(pmbbiDirect)
|
||||
return(status);
|
||||
}
|
||||
if (pmbbiDirect->simm == YES){
|
||||
nRequest=1;
|
||||
status=recGblGetLinkValue(&(pmbbiDirect->siol),
|
||||
(void *)pmbbiDirect,DBR_USHORT,&(pmbbiDirect->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
|
||||
@@ -347,6 +347,7 @@ static long writeValue(pmbboDirect)
|
||||
return(status);
|
||||
}
|
||||
if (pmbboDirect->simm == YES){
|
||||
nRequest=1;
|
||||
status=recGblPutLinkValue(&(pmbboDirect->siol),
|
||||
(void *)pmbboDirect,DBR_USHORT,&(pmbboDirect->val),&nRequest);
|
||||
} else {
|
||||
|
||||
@@ -452,6 +452,7 @@ CALLBACK *pCallback;
|
||||
}
|
||||
|
||||
/* Dump the value to the destination field */
|
||||
nRequest = 1;
|
||||
recGblPutLinkValue(&(pcb->plinks[pcb->index]->lnk), (void *)pseq, DBR_DOUBLE, &(pcb->plinks[pcb->index]->dov), &nRequest);
|
||||
|
||||
if (myDouble != pcb->plinks[pcb->index]->dov)
|
||||
|
||||
Reference in New Issue
Block a user