Skip to content

Commit

Permalink
Fix mbboDirect asyn:READBACK
Browse files Browse the repository at this point in the history
This change makes mbboDirect behave the same as mbbiDirect: RVAL is
copied to VAL (shifted, if neccessary), then each of the fields
representing individual bits is set as well.
  • Loading branch information
exzombie committed Jun 11, 2024
1 parent 33a66b5 commit 80d7494
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions asyn/devEpics/devAsynUInt32Digital.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,12 +1087,9 @@ static long processMbboDirect(mbboDirectRecord *pr)

pr->rval = rval;
if(pr->shft>0) rval >>= pr->shft;
pr->val = rval;
for (i=0; i<NUM_BITS; i++, offset <<= 1, bit++ ) {
if(*bit) {
pr->val |= offset;
} else {
pr->val &= ~offset;
}
*bit = pr->val & offset;
}
}
} else if(pr->pact == 0) {
Expand Down

0 comments on commit 80d7494

Please sign in to comment.