Counters should start at subdevice 2, not 1 (was blowing away the
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 1 Feb 2007 01:28:59 +0000 (01:28 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 1 Feb 2007 01:28:59 +0000 (01:28 +0000)
dio subdevice).

comedi/drivers/ni_660x.c

index 400ce8b300cf490458840c21485e614e95ebfa9e..2dd4de93e661b9430b7a4f609fa5078ad4f8753e 100644 (file)
@@ -683,7 +683,7 @@ static int ni_660x_attach(comedi_device *dev,comedi_devconfig *it)
 
        for(i = 0; i < NI_660X_MAX_NUM_COUNTERS; ++i)
        {
-               s = dev->subdevices + 1 + i;
+               s = dev->subdevices + 2 + i;
                if(i < thisboard->n_ctrs)
                {
                        s->type = COMEDI_SUBD_COUNTER;