projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
618f83d
)
silly me forgot to initialize software count of number of conversions
author
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 27 Jul 2001 16:01:29 +0000
(16:01 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 27 Jul 2001 16:01:29 +0000
(16:01 +0000)
comedi/drivers/cb_pcidas.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_pcidas.c
b/comedi/drivers/cb_pcidas.c
index 28782fdf312772a4de6c14e0e7dd83fb9d2a41cc..28c5bfd6c8e3214a8636679287c371b07ef490d3 100644
(file)
--- 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