projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ebb7d
)
Counters should start at subdevice 2, not 1 (was blowing away the
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 1 Feb 2007 01:28:59 +0000
(
01:28
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 1 Feb 2007 01:28:59 +0000
(
01:28
+0000)
dio subdevice).
comedi/drivers/ni_660x.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_660x.c
b/comedi/drivers/ni_660x.c
index 400ce8b300cf490458840c21485e614e95ebfa9e..2dd4de93e661b9430b7a4f609fa5078ad4f8753e 100644
(file)
--- 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;