hack bugfix for commands
authorDavid Schleef <ds@schleef.org>
Tue, 5 Sep 2000 02:12:15 +0000 (02:12 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 5 Sep 2000 02:12:15 +0000 (02:12 +0000)
comedi/drivers/ni_mio_common.c

index 2e9b5d7c206968bb900dd37578ec110c6cc4b9fa..d1f8cd9e9f511a38c22c9625dbe88a6f28385029 100644 (file)
@@ -797,6 +797,8 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s)
                /* load SC (Scan Count) */
                win_out(AI_SC_Load,AI_Command_1_Register);
 
+s->cur_trig.n=1; /* XXX */
+
                break;
        case TRIG_NONE:
                /* stage number of scans */
@@ -810,6 +812,8 @@ static int ni_ai_cmd(comedi_device *dev,comedi_subdevice *s)
                /* load SC (Scan Count) */
                win_out(AI_SC_Load,AI_Command_1_Register);
 
+s->cur_trig.n=0; /* XXX */
+
                break;
        }