Err, undid my last "fix" which was wrong.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jan 2006 00:16:31 +0000 (00:16 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 2 Jan 2006 00:16:31 +0000 (00:16 +0000)
comedi/drivers/ni_mio_common.c

index 3717d71577701b736dc95f53e961ff125966a7c7..960493d33cd80203bf1ce9c5cb0dd4e67d715b8f 100644 (file)
@@ -1339,7 +1339,7 @@ static void ni_load_channelgain_list(comedi_device *dev,unsigned int n_chan,
                if( ( list[i] & CR_ALT_SOURCE ) )
                {
                        if(boardtype.reg_type == ni_reg_611x)
-                               ni_writew(devpriv->ai_calib_source & 0x0003, Calibration_Channel_Select_611x);
+                               ni_writew(CR_CHAN(list[i])&0x0003, Calibration_Channel_Select_611x);
                }else
                {
                        if(boardtype.reg_type == ni_reg_611x)