From: Frank Mori Hess Date: Thu, 12 Jul 2001 20:34:05 +0000 (+0000) Subject: added a burst-mode-like command to comedi_get_cmd_generic_timed() X-Git-Tag: r0_7_16~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f090f06b0af810b127b03ff186dbf4ef8b04fd58;p=comedilib.git added a burst-mode-like command to comedi_get_cmd_generic_timed() --- diff --git a/lib/cmd.c b/lib/cmd.c index 9ff0ff3..676334e 100644 --- a/lib/cmd.c +++ b/lib/cmd.c @@ -56,6 +56,11 @@ int comedi_get_cmd_generic_timed(comedi_t *it,unsigned int s,comedi_cmd *cmd) cmd->convert_src = TRIG_TIMER; cmd->scan_begin_src = TRIG_TIMER; } + }else if(cmd->convert_src & TRIG_NOW && + cmd->scan_begin_src & TRIG_TIMER) + { + cmd->convert_src = TRIG_NOW; + cmd->scan_begin_src = TRIG_TIMER; }else{ //printf("can't do timed?!?\n"); return -1;