projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1bc3fd
)
revert change to COMEDI_INSN ioctl
r0_7_13
author
David Schleef
<ds@schleef.org>
Fri, 13 Oct 2000 10:26:16 +0000
(10:26 +0000)
committer
David Schleef
<ds@schleef.org>
Fri, 13 Oct 2000 10:26:16 +0000
(10:26 +0000)
lib/comedi.c
patch
|
blob
|
history
diff --git
a/lib/comedi.c
b/lib/comedi.c
index 0df620235e8286edf4fcf6e5619b3fa95492006d..338be62357af97ffd9f768f2982129641fc29720 100644
(file)
--- a/
lib/comedi.c
+++ b/
lib/comedi.c
@@
-143,7
+143,12
@@
int comedi_do_insnlist(comedi_t *it,comedi_insnlist *il)
int comedi_do_insn(comedi_t *it,comedi_insn *insn)
{
- return ioctl(it->fd,COMEDI_INSN,insn);
+ comedi_insnlist il;
+
+ il.n_insns = 1;
+ il.insns = insn;
+
+ return ioctl(it->fd,COMEDI_INSNLIST,&il);
}
int comedi_lock(comedi_t *it,unsigned int subdevice)