bugfix on cmdtest ao
authorDavid Schleef <ds@schleef.org>
Tue, 16 Jan 2001 17:15:43 +0000 (17:15 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 16 Jan 2001 17:15:43 +0000 (17:15 +0000)
comedi/drivers/ni_mio_common.c

index 9cf29498935fcc3b29def8e7ec0b9a7ab34c7a15..62c5c097fba59a4ac8e9eea16ffe4158c2d0613c 100644 (file)
@@ -1656,8 +1656,8 @@ static int ni_ao_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd *cmd)
 
        /* step 2: make sure trigger sources are unique and mutually compatible */
 
-       if(cmd->stop_src!=TRIG_TIMER &&
-          cmd->stop_src!=TRIG_EXT)err++;
+       if(cmd->stop_src!=TRIG_COUNT &&
+          cmd->stop_src!=TRIG_NONE)err++;
 
        if(err)return 2;