From: Frank Mori Hess Date: Sun, 22 Jul 2001 04:21:04 +0000 (+0000) Subject: fixed channel selection bits that had confused binary with hex X-Git-Tag: r0_7_60~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b6dec0f47257ce984e53bb079b2b246b0832c20;p=comedi.git fixed channel selection bits that had confused binary with hex --- diff --git a/comedi/drivers/ni_at_a2150.c b/comedi/drivers/ni_at_a2150.c index 66fad7d0..717743dd 100644 --- a/comedi/drivers/ni_at_a2150.c +++ b/comedi/drivers/ni_at_a2150.c @@ -851,22 +851,22 @@ static int a2150_set_chanlist(comedi_device *dev, unsigned int start_channel, un switch(num_channels) { case 1: - devpriv->config_bits |= CHANNEL_BITS(0x100 | start_channel); + devpriv->config_bits |= CHANNEL_BITS(0x4 | start_channel); break; case 2: if(start_channel == 0) { - devpriv->config_bits |= CHANNEL_BITS(0x010); + devpriv->config_bits |= CHANNEL_BITS(0x2); }else if(start_channel == 2) { - devpriv->config_bits |= CHANNEL_BITS(0x011); + devpriv->config_bits |= CHANNEL_BITS(0x3); }else { return -1; } break; case 4: - devpriv->config_bits |= CHANNEL_BITS(0x001); + devpriv->config_bits |= CHANNEL_BITS(0x1); break; default: return -1;