- From: Heinrich du Toit <heinrichdt_at_tlabs.ac.za>
- Date: Fri, 31 Aug 2007 10:07:31 +0200
Hi
When I do dev = comedi_open(devicename)
I get errno = 22 (Invalid argument)
but dev is not NULL
and everything seems fine after that.
I've set loglevel = 4
and get:
----
Opening.. /dev/comedi0
comedi_perror(): __comedi_errno=22
libc error: Invalid argument
Comedi device opened
----
The first and last line is my own output from my code:
printf("Opening.. %s\n",deviceName);
cDevice = comedi_open(deviceName);
if (!cDevice){
return -1;
}
printf("Comedi device opened\n");
----
The main reason I'm asking is because I'm not sure how to correctly
handle this error situation?
Thanks
-Heinrich
Received on 2007-08-31Z07:07:31