comedi_board_info: reset n_chans_for_generic_timed for each subdevice
authorIan Abbott <abbotti@mev.co.uk>
Mon, 15 Oct 2012 14:52:47 +0000 (15:52 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 15 Oct 2012 14:52:47 +0000 (15:52 +0100)
commitb1824dba8d6200dbc43373e7b68590b769a80519
treeceba8c96098735e59c1dbed26c1af327f981b214
parent1994c8d96ce6a88c35d86d600ff504aa06bb6cf1
comedi_board_info: reset n_chans_for_generic_timed for each subdevice

Add variable `def_n_chans_for_generic_timed` to hold the preferred
number of channels to use in calls to `comedi_get_cmd_generic_timed()`.
Reset the `n_chans_for_generic_timed` variable to this value each time
around the loop for each subdevice before clipping the value to the
number of channels the subdevice has.
comedi_board_info/comedi_board_info.c