From 2e9cabb7bdae2b2953899cded98f6467096fdb11 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 29 Jul 2008 15:25:40 +0000 Subject: [PATCH] Trying to fix bug #265, where ao channels seem to get put in timed update mode and left there by ao commands. --- comedi/drivers/ni_mio_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 4832367e..138c3990 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -2811,6 +2811,8 @@ static int ni_m_series_ao_config_chanlist(comedi_device * dev, int invert = 0; for (i = 0; i < boardtype.n_aochan; ++i) { + devpriv->ao_conf[i] &= ~MSeries_AO_Update_Timed_Bit; + ni_writeb(devpriv->ao_conf[i], M_Offset_AO_Config_Bank(i)); ni_writeb(0xf, M_Offset_AO_Waveform_Order(i)); } for (i = 0; i < n_chans; i++) { -- 2.26.2