From 5b4936c2f8c51ecbb0309bbd036e24c316318f79 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 12 Jul 2007 13:47:27 +0000 Subject: [PATCH] Had edge and level gating swapped --- comedi/drivers/ni_tio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/ni_tio.c b/comedi/drivers/ni_tio.c index e09a5593..c29c2475 100644 --- a/comedi/drivers/ni_tio.c +++ b/comedi/drivers/ni_tio.c @@ -1434,10 +1434,10 @@ static void ni_tio_set_first_gate_modifiers(struct ni_gpct *counter, lsampl_t ga counter_dev->regs[mode_reg] &= ~Gi_Gating_Mode_Mask; if(gate_source & CR_EDGE) { - counter_dev->regs[mode_reg] |= Gi_Level_Gating_Bits; + counter_dev->regs[mode_reg] |= Gi_Rising_Edge_Gating_Bits; }else { - counter_dev->regs[mode_reg] |= Gi_Rising_Edge_Gating_Bits; + counter_dev->regs[mode_reg] |= Gi_Level_Gating_Bits; } counter_dev->write_register(counter, counter_dev->regs[mode_reg], mode_reg); } -- 2.26.2