projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19dbfe
)
fix INTTRIG insn
author
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 22 May 2002 16:44:42 +0000
(16:44 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 22 May 2002 16:44:42 +0000
(16:44 +0000)
demo/ao_waveform.c
patch
|
blob
|
history
diff --git
a/demo/ao_waveform.c
b/demo/ao_waveform.c
index 09a17fc49bd63550e92bacd15f18c4d93dc093b9..6fcb30bcf47e861a0e0f003a4dcd605a87bd685b 100644
(file)
--- a/
demo/ao_waveform.c
+++ b/
demo/ao_waveform.c
@@
-93,6
+93,7
@@
int main(int argc, char *argv[])
int total=0;
comedi_t *dev;
unsigned int chanlist[16];
+ lsampl_t insn_data = 0;
parse_options(argc,argv);
@@
-147,7
+148,15
@@
int main(int argc, char *argv[])
memset(&insn, 0, sizeof(comedi_insn));
insn.insn = INSN_INTTRIG;
insn.subdev = subdevice;
- comedi_do_insn(dev, &insn);
+ insn.n = 1;
+ insn.data = &insn_data;
+ insn.data[ 0 ] = 0;
+ err = comedi_do_insn(dev, &insn);
+ if( err < 0 )
+ {
+ perror("comedi_do_insn()");
+ abort();
+ }
while(1){
dds_output(data,BUF_LEN);