Cosmetic changes to various soft device supports

This commit is contained in:
Andrew Johnson
2017-04-26 15:55:03 -05:00
parent d1af663705
commit c13a4f24ce
7 changed files with 37 additions and 26 deletions
+8 -6
View File
@@ -56,13 +56,15 @@ static long init_record(mbbiDirectRecord *prec)
static long readLocked(struct link *pinp, void *dummy)
{
mbbiDirectRecord *prec = (mbbiDirectRecord *) pinp->precord;
long status = dbGetLink(pinp, DBR_USHORT, &prec->val, 0, 0);
if (status) return status;
prec->udf = FALSE;
if (dbLinkIsConstant(&prec->tsel) &&
prec->tse == epicsTimeEventDeviceTime)
dbGetTimeStamp(pinp, &prec->time);
if (!dbGetLink(pinp, DBR_USHORT, &prec->val, 0, 0)) {
prec->udf = FALSE;
if (dbLinkIsConstant(&prec->tsel) &&
prec->tse == epicsTimeEventDeviceTime)
dbGetTimeStamp(pinp, &prec->time);
}
return 2;
}