From 4b6dec0f47257ce984e53bb079b2b246b0832c20 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 22 Jul 2001 04:21:04 +0000 Subject: [PATCH] fixed channel selection bits that had confused binary with hex --- comedi/drivers/ni_at_a2150.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.26.2