really fixed munging for pio boards
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 May 2003 17:18:01 +0000 (17:18 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 May 2003 17:18:01 +0000 (17:18 +0000)
comedi/drivers/ni_mio_common.c

index 19461876645df7374fc51d267c4929fcd088d481..286fa0f37eacc9a32d9434b1f6eceb0d887162b3 100644 (file)
@@ -859,6 +859,8 @@ static void ni_ai_fifo_read(comedi_device *dev,comedi_subdevice *s,
        }else{
                for(i=0;i<n;i++){
                        data=ni_readw(ADC_FIFO_Data_Register);
+                       data += devpriv->ai_offset[ async->cur_chan++ ];
+                       async->cur_chan %= async->cmd.chanlist_len;
                        err &= comedi_buf_put(async, data);
                }
        }