From 7bef803177f70168168fa96390ea5c7fa2de16d8 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 1 Feb 2007 01:28:59 +0000 Subject: [PATCH] Counters should start at subdevice 2, not 1 (was blowing away the dio subdevice). --- comedi/drivers/ni_660x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2