From 831152564658e6057a78850596f1f3179b7fb5d8 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 4 Aug 2003 20:23:43 +0000 Subject: [PATCH] bugfix from Steven Jenkins --- comedi/drivers/comedi_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.26.2