fixed single-channel command
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:12:19 +0000 (01:12 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Apr 2002 01:12:19 +0000 (01:12 +0000)
comedi/drivers/cb_pcidas64.c

index d290b0a08dcdf2966016cf8cb9c672d688105f0d..fd2d464ff3f937f75beb7061bbbbd6c3ff310960 100644 (file)
@@ -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]));