Re: Bug in get_cmd_generic_timed

On Sunday 24 April 2005 12:08 pm, Jan Gukelberger wrote:
> __generic_timed is only called the first time the app uses
> get_cmd_generic_timed.
> Thus, the ns argument of subsequent queries is simply ignored and all
> queries yield the result of the first query.
>
> This makes it impossible to produce commands for different sampling
> rates within one program (well, you have to manipulate the cmd struct
> manually).
>
> Trivial patch attached.

Thanks, I've applied it.  Note, comedi_get_cmd_generic_timed() doesn't 
really work if you are using more than 1 channel (the function needs 
another parameter).

-- 
Frank

Received on 2005-04-25Z20:47:03