oops, small mistake won't make any difference but might as well be correct
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jul 2001 03:33:38 +0000 (03:33 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jul 2001 03:33:38 +0000 (03:33 +0000)
comedi/drivers/das16.c

index ff56e04b55a16d6dec68213ea4e1f7c25518eea3..a2d3b567841f03aee9326734f751baef06f08e68 100644 (file)
@@ -871,7 +871,7 @@ static int das16_ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *in
                msb = inb(dev->iobase + DAS16_AI_MSB);
                lsb = inb(dev->iobase + DAS16_AI_LSB);
                if(thisboard->ai_nbits==12){
-                       data[n] = ((lsb >> 4) & 0xff) | (msb << 4);
+                       data[n] = ((lsb >> 4) & 0xf) | (msb << 4);
                }else{
                        data[n] = lsb | (msb << 8);
                }