From: Frank Mori Hess Date: Fri, 9 Nov 2001 20:26:17 +0000 (+0000) Subject: fixed bug with checking number of caldac channels noted by Amish Dave X-Git-Tag: r0_7_61~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8a5dbcfdcc9d056bcea40ac77e0c10e4be6024a;p=comedi.git fixed bug with checking number of caldac channels noted by Amish Dave --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 8e69f0b4..76754c46 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -2178,7 +2178,7 @@ static void caldac_setup(comedi_device *dev,comedi_subdevice *s) if(diffbits){ int chan; - if(n_chans>=MAX_N_CALDACS){ + if(n_chans>MAX_N_CALDACS){ printk("BUG! MAX_N_CALDACS too small\n"); } s->maxdata_list=devpriv->caldac_maxdata_list;