From: David Schleef Date: Tue, 19 Mar 2002 20:17:37 +0000 (+0000) Subject: Fix problem with sample offsets introduced in one of the last few X-Git-Tag: r0_7_64~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=931f3b8e5a74a4a47a799a36fc8e349b5f76c4a1;p=comedi.git Fix problem with sample offsets introduced in one of the last few check-ins. --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 5ea85611..15c21724 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -960,7 +960,8 @@ static int ni_ai_insn_read(comedi_device *dev,comedi_subdevice *s,comedi_insn *i }else{ d = ni_readw(ADC_FIFO_Data_Register); } - data[n] = d + signbits; + d += signbits; /* subtle: needs to be short addition */ + data[n] = d; } win_restore(wsave); return insn->n;