From 5271b6cba68c40eba5cfb59e6ce938e1a3acc533 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 1 May 2003 14:43:50 +0000 Subject: [PATCH] fix get_bipolar_lowgain() which i broke --- comedi_calibrate/comedi_calibrate.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/comedi_calibrate/comedi_calibrate.c b/comedi_calibrate/comedi_calibrate.c index 4b62391..c913ab5 100644 --- a/comedi_calibrate/comedi_calibrate.c +++ b/comedi_calibrate/comedi_calibrate.c @@ -1054,8 +1054,7 @@ int get_bipolar_highgain(comedi_t *dev,int subdev) for(i=0;imaxmax; @@ -1075,8 +1074,7 @@ int get_unipolar_lowgain(comedi_t *dev,int subdev) for(i=0;imin+range->max)<(range->max*0.99))continue; + if( is_unipolar( dev, subdev, 0, i ) == 0 ) continue; if(range->max>max){ ret = i; max=range->max; @@ -1096,8 +1094,7 @@ int get_unipolar_highgain(comedi_t *dev,int subdev) for(i=0;imin+range->max)<(range->max*0.99))continue; + if( is_unipolar( dev, subdev, 0, i ) == 0 ) continue; if(range->max < max){ ret = i; max=range->max; -- 2.26.2