From: Frank Mori Hess Date: Thu, 10 Jul 2003 22:07:12 +0000 (+0000) Subject: fix 6052 calibration to use ad8804_debug caldacs X-Git-Tag: r0_7_21~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f397d0a38478b73a5dedaec0070296f2851e4f4;p=comedilib.git fix 6052 calibration to use ad8804_debug caldacs --- diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index 28077af..fb5fc8a 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -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;