From: Frank Mori Hess Date: Mon, 16 Feb 2004 14:30:45 +0000 (+0000) Subject: enabling support for pci-6033e X-Git-Tag: r0_7_22~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3271187236baef27f7ff5b519593b3a58e72632d;p=comedilib.git enabling support for pci-6033e --- diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index d8f74f4..0206562 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -97,7 +97,7 @@ static struct board_struct boards[]={ { "pci-6025e", STATUS_SOME, cal_ni_pci_6025e, ni_setup_observables, 0x1af, 0x1b0 }, { "pci-6031e", STATUS_DONE, cal_ni_pci_mio_16xe_10, ni_setup_observables, 0x1ae, 0x1af }, { "pci-6032e", STATUS_DONE, cal_ni_pci_6032e, ni_setup_observables, 0x1ae, 0x1af }, - { "pci-6033e", STATUS_UNKNOWN, NULL, ni_setup_observables, 0x1ae, 0x1af }, + { "pci-6033e", STATUS_SOME, cal_ni_pci_6032e, ni_setup_observables, -1, -1 }, { "pci-6034e", STATUS_UNKNOWN, NULL, ni_setup_observables, -1, -1 }, { "pci-6035e", STATUS_DONE, cal_ni_pci_6035e, ni_setup_observables, 0x1af, 0x1b0 }, { "pci-6036e", STATUS_DONE, cal_ni_pci_6036e, ni_setup_observables, 0x1ab, 0x1ac }, @@ -309,7 +309,9 @@ static void ni_setup_ao_observables( calibration_setup_t *setup ) int ao_unipolar_lowgain; ai_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev); + assert(ai_bipolar_lowgain >= 0); ao_bipolar_lowgain = get_bipolar_lowgain( setup->dev, setup->da_subdev); + assert(ao_bipolar_lowgain >= 0); ao_unipolar_lowgain = get_unipolar_lowgain( setup->dev, setup->da_subdev); memset(&tmpl,0,sizeof(tmpl));