trivial changes of 1 to 1.0
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Jun 2003 03:15:02 +0000 (03:15 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Jun 2003 03:15:02 +0000 (03:15 +0000)
comedi_calibrate/cb.c
comedi_calibrate/cb64.c

index 0848367483c2338c7d4959ed14fe8d05166d2e48..2281fc988c6e38898f01c860269ab14ec2cb8aa8 100644 (file)
@@ -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
index 61b1123f0adc7884caf9101440c872e130688608..d65f05dd2418daec49c7b2d4654d4c844b080ba8 100644 (file)
@@ -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 );
 }