From 6d29124cf81553a819886f3b4abc2142fa7e5fc9 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 4 Dec 2005 03:20:08 +0000 Subject: [PATCH] use win_out2 macro for write to AI_SC_Load_A_Registers --- comedi/drivers/ni_mio_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 06e505b9..ded65878 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -1637,8 +1637,7 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s) break; case TRIG_NONE: /* stage number of scans */ - win_out(0,AI_SC_Load_A_Registers); - win_out(0,AI_SC_Load_A_Registers+1); + win_out2(0,AI_SC_Load_A_Registers); mode1 |= AI_Start_Stop | AI_Mode_1_Reserved | AI_Continuous; win_out(mode1,AI_Mode_1_Register); -- 2.26.2