bi "Raw Soft Channel" use MASK

If set, apply MASK to value read into RVAL.
This commit is contained in:
Michael Davidsaver
2023-11-02 15:23:05 -07:00
committed by Dirk Zimoch
parent 1b23701946
commit 27ad623d68
2 changed files with 7 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ static long readLocked(struct link *pinp, void *dummy)
if (status) return status;
if (prec->mask)
prec->rval &= prec->mask;
if (dbLinkIsConstant(&prec->tsel) &&
prec->tse == epicsTimeEventDeviceTime)
dbGetTimeStamp(pinp, &prec->time);