From: Frank Mori Hess Date: Wed, 22 May 2002 16:44:42 +0000 (+0000) Subject: fix INTTRIG insn X-Git-Tag: r0_7_19~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=303d9e7ff15b56ab6d36519adffa991ff85ba915;p=comedilib.git fix INTTRIG insn --- diff --git a/demo/ao_waveform.c b/demo/ao_waveform.c index 09a17fc..6fcb30b 100644 --- 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);