silly me forgot to initialize software count of number of conversions
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Jul 2001 16:01:29 +0000 (16:01 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 27 Jul 2001 16:01:29 +0000 (16:01 +0000)
comedi/drivers/cb_pcidas.c

index 28782fdf312772a4de6c14e0e7dd83fb9d2a41cc..28c5bfd6c8e3214a8636679287c371b07ef490d3 100644 (file)
@@ -813,6 +813,12 @@ static int cb_pcidas_ai_cmd(comedi_device *dev,comedi_subdevice *s)
        else if(cmd->scan_begin_src == TRIG_TIMER)
                cb_pcidas_load_counters(dev, &cmd->scan_begin_arg, cmd->flags & TRIG_ROUND_MASK);
 
+       // set number of conversions
+       if(cmd->stop_src == TRIG_COUNT)
+       {
+               devpriv->count = cmd->chanlist_len * cmd->stop_arg;
+       }
+
        // clear interrupts
        outw(EOACL | INTCL | ADFLCL, devpriv->control_status + INT_ADCFIFO);
        // clear s5933 interrupt