added a burst-mode-like command to comedi_get_cmd_generic_timed()
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 12 Jul 2001 20:34:05 +0000 (20:34 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 12 Jul 2001 20:34:05 +0000 (20:34 +0000)
lib/cmd.c

index 9ff0ff3aed1f84994abf6ab0db8681d5b3a8cd6b..676334e3ba3fbfc85860a1aa7c49d6947bb8f9a0 100644 (file)
--- 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;