From d1976b7f495dcefb95f9832ca77a6bcd8fc97f07 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 13 Oct 2000 10:26:16 +0000 Subject: [PATCH] revert change to COMEDI_INSN ioctl --- lib/comedi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/comedi.c b/lib/comedi.c index 0df6202..338be62 100644 --- 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) -- 2.26.2