Experimental Physics and
| |||||||||||||||
|
status=(*pdset->init_record)(pmbboDirect); /* init_record might set status */ if(status==0){ rval = pmbboDirect->rval; if(pmbboDirect->shft>0) rval >>= pmbboDirect->shft; pmbboDirect->val = (unsigned short)rval; pmbboDirect->udf = FALSE; } else if (status == 2) status = 0; } return(status); *Shouldn't it be something like:* status=(*pdset->init_record)(pmbboDirect); /* init_record might set status */ if(status==0){ rval = pmbboDirect->rval; if(pmbboDirect->shft>0) rval >>= pmbboDirect->shft; /* >>>>>>>>>> */ if (pmbboDirect->mask>0) rval &= pmbboDirect->mask /* <<<<<<<<<< */ pmbboDirect->val = (unsigned short)rval; pmbboDirect->udf = FALSE; } else if (status == 2) status = 0; } return(status);
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |