replaced call to comedi_get_front_count() with call to identical comedi_get_buffer_of...
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 16 Apr 2002 20:51:56 +0000 (20:51 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 16 Apr 2002 20:51:56 +0000 (20:51 +0000)
since that is the function that is actually declared in comedilib.h

demo/mmap.c

index 2f18cf49de8c61f331ce5f6c15eb646d0ef6e985..90b8d3179549748de3362c2ddc01ae27c64f3489 100644 (file)
@@ -24,8 +24,6 @@
 #include <sys/mman.h>
 #include "examples.h"
 
-int comedi_get_front_count(comedi_t *it, unsigned int subdev);
-
 unsigned int chanlist[256];
 
 void *map;
@@ -83,7 +81,7 @@ int main(int argc, char *argv[])
 
        back = 0;
        while(1){
-               front = comedi_get_front_count(dev,subdevice);
+               front = comedi_get_buffer_offset(dev,subdevice);
                if(verbose)fprintf(stderr,"front = %d, back = %d\n",front,back);
                if(front<back)break;
                if(front==back){