fixups for commands r0_7_40
authorDavid Schleef <ds@schleef.org>
Mon, 6 Mar 2000 08:37:02 +0000 (08:37 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 6 Mar 2000 08:37:02 +0000 (08:37 +0000)
comedi/drivers/ni_mio_common.c

index b1de1fff11bd84862c13529085c1029658535b25..c2b5604c4bd159c8f634bde1d65a988baf14933b 100644 (file)
@@ -680,8 +680,8 @@ static int ni_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd *cmd)
        ni_ns_to_timer(&cmd->convert_arg,cmd->flags&TRIG_ROUND_MASK);
        if(tmp!=cmd->convert_arg)err++;
        if(cmd->scan_begin_src==TRIG_TIMER &&
-          cmd->convert_arg<cmd->scan_begin_arg*cmd->scan_end_arg){
-               cmd->convert_arg=cmd->scan_begin_arg*cmd->scan_end_arg;
+          cmd->scan_begin_arg<cmd->convert_arg*cmd->scan_end_arg){
+               cmd->scan_begin_arg=cmd->convert_arg*cmd->scan_end_arg;
                err++;
        }