From: Frank Mori Hess Date: Mon, 2 Jan 2006 00:16:31 +0000 (+0000) Subject: Err, undid my last "fix" which was wrong. X-Git-Tag: r0_7_71~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cce918c81d58831c3fe4cdd2a18a37c91a0cc72b;p=comedi.git Err, undid my last "fix" which was wrong. --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 3717d715..960493d3 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -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)