From: Frank Mori Hess Date: Mon, 2 Jan 2006 00:12:01 +0000 (+0000) Subject: Fixed reading of alt ai sources with 611x boards. X-Git-Tag: r0_7_71~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34cee4aa3597a732167e8f6d5e776dbc008e4408;p=comedi.git Fixed reading of alt ai sources with 611x boards. --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 960493d3..3717d715 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(CR_CHAN(list[i])&0x0003, Calibration_Channel_Select_611x); + ni_writew(devpriv->ai_calib_source & 0x0003, Calibration_Channel_Select_611x); }else { if(boardtype.reg_type == ni_reg_611x)