From: Frank Mori Hess Date: Mon, 14 May 2001 00:06:37 +0000 (+0000) Subject: removed outdated lseek stuff X-Git-Tag: r0_7_16~94 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e2756029e828ed6d93b15e40c1d48fbaa8c7f93;p=comedilib.git removed outdated lseek stuff --- diff --git a/demo/ao_waveform.c b/demo/ao_waveform.c index 4edc518..d0ef7f8 100644 --- a/demo/ao_waveform.c +++ b/demo/ao_waveform.c @@ -41,10 +41,6 @@ * write(), you should fill the buffer using write() before * you call comedi_command(), as is done here. * - * Also NOTE! The lseek() to offset 1 is used to tell - * comedi that you want to write to subdevice 1. This - * is not needed for analog input, since AI is usually on - * subdevice 0. */ #include @@ -136,7 +132,8 @@ int main(int argc, char *argv[]) dds_output(data,BUF_LEN); dds_output(data,BUF_LEN); - lseek(comedi_fileno(dev),subdevice,SEEK_SET); + //lseek no longer needed or used + //lseek(comedi_fileno(dev),subdevice,SEEK_SET); m=write(comedi_fileno(dev),data,BUF_LEN*sizeof(sampl_t)); perror("write"); printf("m=%d\n",m);