calc and calcout record get_precision bug
Bug #680702 reported by
Stephanie Allison
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Precision is not properly initialized before calling recGblGetPrec in the calc and calcout records. Also, I found some channel access calls don't get the proper precision unless the FieldIndex is used to determine if the PV is VAL or not. Please change get_precision to be as follows (which is consistent with subRecord):
static long get_precision(
{
calcRecord *prec = (calcRecord *)paddr->precord;
int fieldIndex = dbGetFieldIndex
*pprecision = prec->prec;
if (fieldIndex != calcRecordVAL)
return 0;
}
Related branches
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in R3.14.12 (just!). Thanks!