From cce918c81d58831c3fe4cdd2a18a37c91a0cc72b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 2 Jan 2006 00:16:31 +0000 Subject: [PATCH] Err, undid my last "fix" which was wrong. --- comedi/drivers/ni_mio_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2