Fix BUG in do_test_for_insn_bits() while testing irrelevant subdevices
authorDavid Schleef <ds@schleef.org>
Fri, 8 Mar 2002 23:44:25 +0000 (23:44 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 8 Mar 2002 23:44:25 +0000 (23:44 +0000)
that are busy.

lib/filler.c

index 1d40e99e2b0868096a595a3e35f1d63834b6ed1f..54d31e65496ad3b8bd2e57780231d5205ae8416d 100644 (file)
@@ -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;