From f090f06b0af810b127b03ff186dbf4ef8b04fd58 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 12 Jul 2001 20:34:05 +0000 Subject: [PATCH] added a burst-mode-like command to comedi_get_cmd_generic_timed() --- lib/cmd.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.26.2