projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
912ff42
)
Fix BUG in do_test_for_insn_bits() while testing irrelevant subdevices
author
David Schleef
<ds@schleef.org>
Fri, 8 Mar 2002 23:44:25 +0000
(23:44 +0000)
committer
David Schleef
<ds@schleef.org>
Fri, 8 Mar 2002 23:44:25 +0000
(23:44 +0000)
that are busy.
lib/filler.c
patch
|
blob
|
history
diff --git
a/lib/filler.c
b/lib/filler.c
index 1d40e99e2b0868096a595a3e35f1d63834b6ed1f..54d31e65496ad3b8bd2e57780231d5205ae8416d 100644
(file)
--- a/
lib/filler.c
+++ b/
lib/filler.c
@@
-229,6
+229,9
@@
static int do_test_for_insn_bits(comedi_t *dev,unsigned int subdevice)
lsampl_t data[2];
int ret;
+ if(dev->subdevices[subdevice].maxdata != 1)
+ return 0;
+
memset(&insn,0,sizeof(insn));
il.n_insns = 1;