From dc9e4ccc0420f29d8df03a69f9dc5cc901ec6290 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 26 May 2010 10:39:22 -0700 Subject: [PATCH] display limits for delays set to 0...10 --- src/rec/boRecord.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/rec/boRecord.c b/src/rec/boRecord.c index 42d050b95..efc4b107f 100644 --- a/src/rec/boRecord.c +++ b/src/rec/boRecord.c @@ -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); }