replaced call to comedi_get_front_count() with call to identical comedi_get_buffer_offset()
since that is the function that is actually declared in comedilib.h
This commit is contained in:
parent
79614184d3
commit
2a637ef62c
1 changed files with 1 additions and 3 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue