From: Frank Mori Hess Date: Mon, 2 Jul 2001 03:33:38 +0000 (+0000) Subject: oops, small mistake won't make any difference but might as well be correct X-Git-Tag: r0_7_60~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06740bcb90e75c2168b0b41a3b59c76df261a3bc;p=comedi.git oops, small mistake won't make any difference but might as well be correct --- diff --git a/comedi/drivers/das16.c b/comedi/drivers/das16.c index ff56e04b..a2d3b567 100644 --- a/comedi/drivers/das16.c +++ b/comedi/drivers/das16.c @@ -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); }