bugfix from Steven Jenkins
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 20:23:43 +0000 (20:23 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 20:23:43 +0000 (20:23 +0000)
comedi/drivers/comedi_test.c

index a134dc69330c62d997511b4d732fe33e3d134edd..2d0f2848de3c741e2e1129426f12882ceab7047d 100644 (file)
@@ -216,13 +216,13 @@ static int waveform_attach(comedi_device *dev,comedi_devconfig *it)
        s->maxdata = (1 << thisboard->ai_bits) - 1;
        s->range_table = &waveform_ai_ranges;
        s->len_chanlist = s->n_chan * 2;
-       s->insn_read = waveform_ai_insn_read; // apparently, we do not need waveform_ai_rinsn;
+       s->insn_read = waveform_ai_insn_read; 
        s->do_cmd = waveform_ai_cmd;
        s->do_cmdtest = waveform_ai_cmdtest;
        s->cancel = waveform_ai_cancel;
 
        s = dev->subdevices + 1;
-       dev->read_subdev = s;
+       dev->write_subdev = s;
        /* analog output subdevice (loopback) */
        s->type = COMEDI_SUBD_AO;
        s->subdev_flags = SDF_WRITEABLE | SDF_GROUND;