From: Frank Mori Hess Date: Fri, 5 Apr 2002 01:12:19 +0000 (+0000) Subject: fixed single-channel command X-Git-Tag: r0_7_65~113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3640c5557b5aac1c4dfb9e90384141f8b19aecf;p=comedi.git fixed single-channel command --- diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index d290b0a0..fd2d464f 100644 --- 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]));