honor the MASK and SHFT fields
This commit is contained in:
@@ -80,6 +80,9 @@ static long init_record(pmbbi)
|
||||
"devMbbiDirectSoftRaw (init_record) Illegal INP field");
|
||||
return(S_db_badField);
|
||||
}
|
||||
/*to preserve old functionality*/
|
||||
if(pmbbi->nobt == 0) pmbbi->mask = 0xffffffff;
|
||||
pmbbi->mask <<= pmbbi->shft;
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -89,5 +92,6 @@ static long read_mbbi(pmbbi)
|
||||
long status;
|
||||
|
||||
status = dbGetLink(&pmbbi->inp,DBR_LONG,&pmbbi->rval,0,0);
|
||||
if(status==0) pmbbi->rval &= pmbbi->mask;
|
||||
return(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user