Fixed insn_write bug.
authorDavid Schleef <ds@schleef.org>
Tue, 3 Apr 2001 09:24:22 +0000 (09:24 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 3 Apr 2001 09:24:22 +0000 (09:24 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 6fa229481dbf4d2d90b52e72b7881a6e84dacebf..6fef36b30368e64d3c9c8d729db05fdb668f9b9b 100644 (file)
@@ -673,7 +673,7 @@ int comedi_do_insn(unsigned int minor,comedi_insn *insn)
                                ret = s->insn_read(dev,s,insn,insn->data);
                                break;
                        case INSN_WRITE:
-                               ret = s->insn_read(dev,s,insn,insn->data);
+                               ret = s->insn_write(dev,s,insn,insn->data);
                                break;
                        case INSN_BITS:
                                ret = s->insn_bits(dev,s,insn,insn->data);