From f5fd0b02693894ca6bf468d3fe4daa17e5b9dec7 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 27 Jun 2003 03:15:02 +0000 Subject: [PATCH] trivial changes of 1 to 1.0 --- comedi_calibrate/cb.c | 8 ++++---- comedi_calibrate/cb64.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/comedi_calibrate/cb.c b/comedi_calibrate/cb.c index 0848367..2281fc9 100644 --- a/comedi_calibrate/cb.c +++ b/comedi_calibrate/cb.c @@ -421,8 +421,8 @@ static int cal_cb_pci_1xxx( calibration_setup_t *setup ) layout.adc_ground_observable = ai_ground_observable_1xxx; layout.dac_high_observable = ao_high_observable_1xxx; layout.dac_ground_observable = ao_ground_observable_1xxx; - layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1 ); - layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1 ); + layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); + layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } @@ -488,8 +488,8 @@ static int cal_cb_pci_1602_16( calibration_setup_t *setup ) layout.adc_ground_observable = ai_ground_observable_1xxx; layout.dac_high_observable = ao_high_observable_1xxx; layout.dac_ground_observable = ao_ground_observable_1xxx; - layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1 ); - layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1 ); + layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); + layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); /* The bipolar postgain calibration should be good for both * bipolar and unipolar ranges, so disable separate * unipolar postgain offset calibration (it will fail diff --git a/comedi_calibrate/cb64.c b/comedi_calibrate/cb64.c index 61b1123..d65f05d 100644 --- a/comedi_calibrate/cb64.c +++ b/comedi_calibrate/cb64.c @@ -763,8 +763,8 @@ static int cal_cb_pci_64xx( calibration_setup_t *setup ) layout.adc_ground_observable = ai_ground_observable_index_64xx; layout.dac_high_observable = ao_high_observable_index_64xx; layout.dac_ground_observable = ao_ground_observable_index_64xx; - layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1 ); - layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1 ); + layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); + layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } @@ -809,8 +809,8 @@ static int cal_cb_pci_60xx( calibration_setup_t *setup ) layout.adc_ground_observable = ai_ground_observable_index_60xx; layout.dac_high_observable = ao_high_observable_index_60xx; layout.dac_ground_observable = ao_ground_observable_index_60xx; - layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1 ); - layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1 ); + layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); + layout.dac_fractional_tolerance = get_tolerance( setup, setup->da_subdev, 1.0 ); return generic_cal_by_range( setup, &layout ); } @@ -832,7 +832,7 @@ static int cal_cb_pci_4020( calibration_setup_t *setup ) layout.adc_gain = adc_gain_4020; layout.adc_high_observable = ai_high_observable_index_4020; layout.adc_ground_observable = ai_low_observable_index_4020; - layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1 ); + layout.adc_fractional_tolerance = get_tolerance( setup, setup->ad_subdev, 1.0 ); return generic_cal_by_channel_and_range( setup, &layout ); } -- 2.26.2