From 34cee4aa3597a732167e8f6d5e776dbc008e4408 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 2 Jan 2006 00:12:01 +0000 Subject: [PATCH] Fixed reading of alt ai sources with 611x boards. --- 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 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) -- 2.26.2