From 564e9680b02a49c1e2ffa51c4fad2d28de471537 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 18 Dec 2008 17:23:14 +0000 Subject: [PATCH] Fixed do_test_for_insn_bits(), broken by validity checks added to comedi_do_insnlist(). Call comedi_ioctl() instead of comedi_do_insnlist(). --- lib/filler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filler.c b/lib/filler.c index aa1f6c3..10a42b8 100644 --- a/lib/filler.c +++ b/lib/filler.c @@ -350,7 +350,7 @@ static int do_test_for_insn_bits(comedi_t *dev,unsigned int subdevice) insn.subdev = subdevice; memset(data, 0, insn.n * sizeof(data[0])); - ret = comedi_do_insnlist(dev,&il); + ret = comedi_ioctl(dev->fd, COMEDI_INSNLIST, &il); if(ret<0 && (errno==EINVAL || errno==EIO)){ return 0; -- 2.26.2