From 5cf174dde59f17cc95e1d6bff750d450e77ff622 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 30 Sep 2001 16:36:57 +0000 Subject: [PATCH] fixed checking of chanlist in cmdtest for analog out --- comedi/drivers/cb_pcidas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index c4ed3bcc..22009b81 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -1167,9 +1167,10 @@ static int cb_pcidas_ao_cmdtest(comedi_device *dev,comedi_subdevice *s, if(cmd->chanlist && cmd->chanlist_len > 1) { - if(CR_CHAN(cmd->chanlist[0]) != CR_CHAN(cmd->chanlist[1])) + if(CR_CHAN(cmd->chanlist[0]) != 0 || + CR_CHAN(cmd->chanlist[1]) != 1) { - comedi_error(dev, "entries in chanlist must be unique\n"); + comedi_error(dev, "channels must be ordered channel 0, channel 1 in chanlist\n"); err++; } } -- 2.26.2