From: Frank Mori Hess Date: Wed, 9 Jun 2004 23:08:26 +0000 (+0000) Subject: add warning to 6711 calibration if driver version might be too old X-Git-Tag: r0_7_22~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bbe6060b5312de30c79a1d52248ee83342869270;p=comedilib.git add warning to 6711 calibration if driver version might be too old --- diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index c028fbd..9f26911 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -1628,7 +1628,12 @@ static void ni67xx_setup_observables( calibration_setup_t *setup ) static int cal_ni_pci_6711(calibration_setup_t *setup) { generic_layout_t layout; - + + if( comedi_get_version_code( setup->dev ) <= COMEDI_VERSION_CODE(0, 7, 69)) + { + DPRINT(0, "WARNING: you need comedi driver version 0.7.69 or later\n" + "for this calibration to work properly\n" ); + } init_generic_layout( &layout ); layout.dac_gain = ni67xx_ao_gain_caldac; layout.dac_linearity = ni67xx_ao_linearity_caldac;