jba 3/21/91
This commit is contained in:
@@ -67,7 +67,6 @@ static long read_bi(pbi)
|
||||
{
|
||||
char message[100];
|
||||
long status,options,nRequest;
|
||||
unsigned short val;
|
||||
|
||||
/* bi.inp must be a CONSTANT or a DB_LINK or a CA_LINK*/
|
||||
switch (pbi->inp.type) {
|
||||
@@ -77,17 +76,14 @@ static long read_bi(pbi)
|
||||
options=0;
|
||||
nRequest=1;
|
||||
status = dbGetLink(&(pbi->inp.value.db_link),pbi,DBR_USHORT,
|
||||
&val,&options,&nRequest);
|
||||
&pbi->val,&options,&nRequest);
|
||||
if(status!=0) {
|
||||
if(pbi->nsev<VALID_ALARM) {
|
||||
pbi->nsev = VALID_ALARM;
|
||||
pbi->nsta = LINK_ALARM;
|
||||
}
|
||||
return(2);
|
||||
}
|
||||
else {
|
||||
if (val==0) pbi->val = 0;
|
||||
else pbi->val = 1;
|
||||
}
|
||||
break;
|
||||
case (CA_LINK) :
|
||||
break;
|
||||
@@ -102,5 +98,5 @@ static long read_bi(pbi)
|
||||
}
|
||||
}
|
||||
}
|
||||
return(0);
|
||||
return(2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user