From 6995def210a6f7178310019741a3f841cc8ec399 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 1 Apr 2008 19:10:35 +0000 Subject: [PATCH] Fixed single-channel ao waveform on 6xxx boards, which I broke with last commit. --- 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 e8178a59..34ca524b 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -3183,7 +3183,7 @@ Frank Hess 2008-03-31. */ unsigned bits; devpriv->ao_mode1 &= ~AO_Multiple_Channels; bits = AO_UPDATE_Output_Select(AO_Update_Output_High_Z); - if (boardtype.reg_type & ni_reg_m_series_mask) { + if (boardtype.reg_type & (ni_reg_m_series_mask | ni_reg_6xxx_mask)) { bits |= AO_Number_Of_Channels(0); } else { bits |= AO_Number_Of_Channels(CR_CHAN(cmd-> -- 2.26.2