From c3640c5557b5aac1c4dfb9e90384141f8b19aecf Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 5 Apr 2002 01:12:19 +0000 Subject: [PATCH] fixed single-channel command --- comedi/drivers/cb_pcidas64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); -- 2.26.2