fix 6052 calibration to use ad8804_debug caldacs
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jul 2003 22:07:12 +0000 (22:07 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 10 Jul 2003 22:07:12 +0000 (22:07 +0000)
comedi_calibrate/ni.c

index 28077af365e0eab863a016803039bbdcd20bddb0..fb5fc8a5b27a63244d2e1405f439e6e8c09e0fce 100644 (file)
@@ -985,7 +985,7 @@ static int cal_ni_pci_6052e(calibration_setup_t *setup)
        layout.adc_pregain_offset_fine = 1;
        layout.adc_postgain_offset_fine = 3;
        layout.adc_gain_fine = 5;
-#if 1
+#if 0
 /* this seems broken, i think we need to change
  * second caldac in driver to ad8804_debug */
        layout.dac_offset[ 0 ] = 12 + 11;
@@ -995,6 +995,8 @@ static int cal_ni_pci_6052e(calibration_setup_t *setup)
        layout.dac_gain[ 1 ] = 12 + 9;
        layout.dac_gain_fine[ 1 ] = 12 + 5;
 #else
+       DPRINT(0, "WARNING: you need comedi driver version 0.7.67 or later\n"
+        "for this calibration to work properly\n" );
 /* this should work if the first two caldacs were ad8804_debug */
        layout.dac_offset[ 0 ] = 16 + 3;
        layout.dac_gain[ 0 ] = 16 + 1;