From: Frank Mori Hess Date: Fri, 27 Jul 2001 16:01:29 +0000 (+0000) Subject: silly me forgot to initialize software count of number of conversions X-Git-Tag: r0_7_61~218 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=800f0d3a5930983af14169eddd01db652e2ab4cb;p=comedi.git silly me forgot to initialize software count of number of conversions --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 28782fdf..28c5bfd6 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -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