projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6120bc
)
fixed single-channel command
author
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:12:19 +0000
(
01:12
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:12:19 +0000
(
01:12
+0000)
comedi/drivers/cb_pcidas64.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_pcidas64.c
b/comedi/drivers/cb_pcidas64.c
index d290b0a08dcdf2966016cf8cb9c672d688105f0d..fd2d464ff3f937f75beb7061bbbbd6c3ff310960 100644
(file)
--- a/
comedi/drivers/cb_pcidas64.c
+++ b/
comedi/drivers/cb_pcidas64.c
@@
-1567,7
+1567,7
@@
static int ai_cmd(comedi_device *dev,comedi_subdevice *s)
{
if(cmd->chanlist_len == 4)
private(dev)->adc_control1_bits |= FOUR_CHANNEL_4020_BITS;
- else
+ else
if(cmd->chanlist_len == 2)
private(dev)->adc_control1_bits |= TWO_CHANNEL_4020_BITS;
private(dev)->adc_control1_bits |= LO_CHANNEL_4020_BITS(CR_CHAN(cmd->chanlist[0]));
private(dev)->adc_control1_bits |= HI_CHANNEL_4020_BITS(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]));