From 800f0d3a5930983af14169eddd01db652e2ab4cb Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 27 Jul 2001 16:01:29 +0000 Subject: [PATCH] silly me forgot to initialize software count of number of conversions --- comedi/drivers/cb_pcidas.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.26.2