From: David Schleef Date: Wed, 4 Sep 2002 21:43:22 +0000 (+0000) Subject: end-of-range fix in ao cmdtest, and ao chanlist should be 2. X-Git-Tag: r0_7_66~107 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75e44bc138b271a9a37c8b7c898fd9bc242e5b9f;p=comedi.git end-of-range fix in ao cmdtest, and ao chanlist should be 2. --- diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index f0335b41..c4e71ae9 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -980,7 +980,7 @@ static int dt282x_ao_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd * cmd->start_arg=0; err++; } - if(cmd->scan_begin_arg <= 5000 /* XXX unknown */){ + if(cmd->scan_begin_arg < 5000 /* XXX unknown */){ cmd->scan_begin_arg = 5000; err++; } @@ -1291,7 +1291,7 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it) s->do_cmd=dt282x_ao_cmd; s->cancel=dt282x_ao_cancel; s->maxdata=(1<len_chanlist=1; /* XXX could do 2 */ + s->len_chanlist=2; s->range_table_list=devpriv->darangelist; devpriv->darangelist[0]= opt_ao_range_lkup(it->options[opt_ao0_range]);