From: David Schleef Date: Fri, 8 Mar 2002 23:44:25 +0000 (+0000) Subject: Fix BUG in do_test_for_insn_bits() while testing irrelevant subdevices X-Git-Tag: r0_7_19~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99b587482bf28854705d944c5bf72f0f5a1dbe21;p=comedilib.git Fix BUG in do_test_for_insn_bits() while testing irrelevant subdevices that are busy. --- diff --git a/lib/filler.c b/lib/filler.c index 1d40e99..54d31e6 100644 --- 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;