From: Frank Mori Hess Date: Thu, 1 Feb 2007 01:28:59 +0000 (+0000) Subject: Counters should start at subdevice 2, not 1 (was blowing away the X-Git-Tag: r0_7_74~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7bef803177f70168168fa96390ea5c7fa2de16d8;p=comedi.git Counters should start at subdevice 2, not 1 (was blowing away the dio subdevice). --- diff --git a/comedi/drivers/ni_660x.c b/comedi/drivers/ni_660x.c index 400ce8b3..2dd4de93 100644 --- a/comedi/drivers/ni_660x.c +++ b/comedi/drivers/ni_660x.c @@ -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;