das08: Correct AO output for das08jr-16-ao
authorIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 16:44:16 +0000 (17:44 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 16:44:16 +0000 (17:44 +0100)
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 <abbotti@mev.co.uk>
comedi/drivers/das08.c

index 2a8cc0aff852d29845719948a2528959fbb5f89b..e923d36db022b1dd8e5e3cc7b1f828dee0f61f14 100644 (file)
@@ -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]);