fixed bug with checking number of caldac channels noted by Amish Dave
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 9 Nov 2001 20:26:17 +0000 (20:26 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 9 Nov 2001 20:26:17 +0000 (20:26 +0000)
comedi/drivers/ni_mio_common.c

index 8e69f0b478178121f5c6a666e5811902f52a5bb9..76754c4666f0d8d65a8bfb09128abb37ebad24a0 100644 (file)
@@ -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;