Re: how to configure ni_6602 for quad encoding?

On Thursday 09 March 2006 07:57 am, Ian Abbott wrote:
>
> insn.n is the length of data[].  For insn.insn == INSN_CONFIG, the
> required length of data[] depends on data[0], but the checks performed
> by the Comedi driver are not very rigorous - see
> check_insn_config_length() in comedi/comedi_fops.c.

The check actually doesn't do anything right now (note it will always 
return 0).  It ought to be changed to check for inequality on the insns it 
knows about and return an error if true.

-- 
Frank

Received on 2006-03-09Z13:22:43