projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d66cf1
)
added a burst-mode-like command to comedi_get_cmd_generic_timed()
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 12 Jul 2001 20:34:05 +0000
(20:34 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 12 Jul 2001 20:34:05 +0000
(20:34 +0000)
lib/cmd.c
patch
|
blob
|
history
diff --git
a/lib/cmd.c
b/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;