From: Frank Mori Hess Date: Thu, 22 Apr 2004 22:39:24 +0000 (+0000) Subject: fix init of len_chanlist for analog output subdevice, removed X-Git-Tag: r0_7_69~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46c9296fe65557453244a3caf066c0a0b3e4d826;p=comedi.git fix init of len_chanlist for analog output subdevice, removed redundant check in ao command test --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index a76be0f6..a440a77e 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -2305,11 +2305,6 @@ static int ni_ao_cmdtest(comedi_device *dev,comedi_subdevice *s,comedi_cmd *cmd) /* step 5: fix up chanlist */ - if(cmd->chanlist_len != cmd->scan_end_arg){ - cmd->chanlist_len = cmd->scan_end_arg; - err++; - } - if(err)return 5; return 0; @@ -2679,7 +2674,7 @@ static int ni_E_init(comedi_device *dev,comedi_devconfig *it) if(boardtype.ao_fifo_depth){ s->do_cmd=ni_ao_cmd; s->do_cmdtest=ni_ao_cmdtest; - s->len_chanlist = 2; + s->len_chanlist = boardtype.n_aochan; s->munge=ni_ao_munge; } s->cancel=ni_ao_reset;