fix for insn->mode0 conversion
authorDavid Schleef <ds@schleef.org>
Wed, 6 Sep 2000 00:53:05 +0000 (00:53 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 6 Sep 2000 00:53:05 +0000 (00:53 +0000)
comedi/drivers.c

index 8f4bc650645f2d0284d1d55041b6d85154bd28b9..c1e499e57d2d8d5a71088f9407df9ed156250dc9 100644 (file)
@@ -334,7 +334,7 @@ static int insn_emulate(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn
                }
        }
 
-       return -EINVAL;
+       return insn->n;
 }