From: Frank Mori Hess Date: Mon, 4 Aug 2003 20:23:43 +0000 (+0000) Subject: bugfix from Steven Jenkins X-Git-Tag: r0_7_69~286 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=831152564658e6057a78850596f1f3179b7fb5d8;p=comedi.git bugfix from Steven Jenkins --- diff --git a/comedi/drivers/comedi_test.c b/comedi/drivers/comedi_test.c index a134dc69..2d0f2848 100644 --- a/comedi/drivers/comedi_test.c +++ b/comedi/drivers/comedi_test.c @@ -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;