use win_out2 macro for write to AI_SC_Load_A_Registers
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 4 Dec 2005 03:20:08 +0000 (03:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 4 Dec 2005 03:20:08 +0000 (03:20 +0000)
comedi/drivers/ni_mio_common.c

index 06e505b9811fafe460d2f62fa69d638e0231f094..ded658787dcc5b78e4a55320f710411aaffbb171 100644 (file)
@@ -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);