From: Ian Abbott Date: Fri, 31 Aug 2012 16:44:16 +0000 (+0100) Subject: das08: Correct AO output for das08jr-16-ao X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d743220d9b53b357f2dbad6ddf83c5a5c9ad18b4;p=comedi.git das08: Correct AO output for das08jr-16-ao Don't zero out bits 15..12 of the data value in das08jr_ao_winsn() as that knobbles the upper three quarters of the output range for the "das08jr-16-ao" board. Signed-off-by: Ian Abbott --- diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 2a8cc0af..e923d36d 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -645,7 +645,7 @@ static int das08jr_ao_winsn(comedi_device * dev, comedi_subdevice * s, for (n = 0; n < insn->n; n++) { lsb = data[n] & 0xff; - msb = (data[n] >> 8) & 0xf; + msb = (data[n] >> 8) & 0xff; #if 0 outb(lsb, dev->iobase + devpriv->ao_offset_lsb[chan]); outb(msb, dev->iobase + devpriv->ao_offset_msb[chan]);