From 931f3b8e5a74a4a47a799a36fc8e349b5f76c4a1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 19 Mar 2002 20:17:37 +0000 Subject: [PATCH] Fix problem with sample offsets introduced in one of the last few check-ins. --- comedi/drivers/ni_mio_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.26.2