From: David Schleef Date: Tue, 3 Apr 2001 09:23:01 +0000 (+0000) Subject: Fix bug in ao code related to warning about return value != X-Git-Tag: r0_7_58~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3862ddce134178ca4033ee447461b01baf1bd0a;p=comedi.git Fix bug in ao code related to warning about return value != insn.n. Also fixed ao range to be +/- 5V. --- 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;