Fixed read-back of TSEL link
Reading back a .TSEL field that was originally pointed to another record's .TIME field was exposing internal details that didn't need to be made visible. This commit hides the .TIME => .VAL change completely, and allows a .TSEL link field to be saved and restored properly using autosave.
This commit is contained in:
@@ -303,7 +303,7 @@ void epicsShareAPI recGblTSELwasModified(struct link *plink)
|
||||
/*Note that the VAL value will not be used*/
|
||||
pfieldname = strstr(ppv_link->pvname, ".TIME");
|
||||
if (pfieldname) {
|
||||
strcpy(pfieldname, ".VAL");
|
||||
*pfieldname = 0;
|
||||
ppv_link->pvlMask |= pvlOptTSELisTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2041,9 +2041,11 @@ char * epicsShareAPI dbGetString(DBENTRY *pdbentry)
|
||||
else if(pvlMask&pvlOptCP) ppind=3;
|
||||
else if(pvlMask&pvlOptCPP) ppind=4;
|
||||
else ppind=0;
|
||||
if(plink->value.pv_link.pvname)
|
||||
strcpy(message,plink->value.pv_link.pvname);
|
||||
else
|
||||
if (plink->value.pv_link.pvname) {
|
||||
strcpy(message, plink->value.pv_link.pvname);
|
||||
if (pvlMask & pvlOptTSELisTime)
|
||||
strcat(message, ".TIME");
|
||||
} else
|
||||
strcpy(message,"");
|
||||
strcat(message," ");
|
||||
strcat(message,ppstring[ppind]);
|
||||
|
||||
Reference in New Issue
Block a user