display limits for delays set to 0...10

This commit is contained in:
Dirk Zimoch
2010-05-26 10:39:22 -07:00
parent 8e701b7d4f
commit dc9e4ccc04

View File

@@ -272,23 +272,27 @@ static long process(boRecord *prec)
static long get_units(DBADDR *paddr, char *units)
{
if(dbGetFieldIndex(paddr) == indexof(HIGH)) strcpy(units, "s");
if(dbGetFieldIndex(paddr) == indexof(HIGH))
strcpy(units, "s");
return(0);
}
static long get_precision(DBADDR *paddr, long *precision)
{
if(dbGetFieldIndex(paddr) == indexof(HIGH)) *precision = 2;
else recGblGetPrec(paddr,precision);
if(dbGetFieldIndex(paddr) == indexof(HIGH))
*precision = 2;
else
recGblGetPrec(paddr,precision);
return(0);
}
static long get_control_double(DBADDR *paddr,struct dbr_ctrlDouble *pcd)
{
recGblGetControlDouble(paddr,pcd);
if(dbGetFieldIndex(paddr) == indexof(HIGH)) {
pcd->lower_ctrl_limit = 0.0;
}
pcd->upper_ctrl_limit = 10.0;
} else
recGblGetControlDouble(paddr,pcd);
return(0);
}