From: Ian Abbott Date: Thu, 18 Dec 2008 17:23:14 +0000 (+0000) Subject: Fixed do_test_for_insn_bits(), broken by validity checks added to X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=564e9680b02a49c1e2ffa51c4fad2d28de471537;p=comedilib.git Fixed do_test_for_insn_bits(), broken by validity checks added to comedi_do_insnlist(). Call comedi_ioctl() instead of comedi_do_insnlist(). --- 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;