From e3862ddce134178ca4033ee447461b01baf1bd0a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 3 Apr 2001 09:23:01 +0000 Subject: [PATCH] Fix bug in ao code related to warning about return value != insn.n. Also fixed ao range to be +/- 5V. --- comedi/drivers/das08.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index ee49bd78..4b11de87 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -443,9 +443,6 @@ static int das08jr_ao_winsn(comedi_device *dev,comedi_subdevice *s,comedi_insn * /* load DACs */ inb(dev->iobase+DAS08JR_DIO); - - /* XXX */ - break; } return n; @@ -479,9 +476,6 @@ static int das08ao_ao_winsn(comedi_device *dev,comedi_subdevice *s,comedi_insn * /* load DACs */ inb(dev->iobase+DAS08AO_AO_UPDATE); - - /* XXX */ - break; } return n; @@ -543,7 +537,7 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) s->subdev_flags = SDF_WRITEABLE; s->n_chan = 2; s->maxdata = (1<ao_nbits)-1; - s->range_table = &range_unknown; /* XXX */ + s->range_table = &range_bipolar5; s->insn_write = thisboard->ao; }else{ s->type=COMEDI_SUBD_UNUSED; -- 2.26.2