comedi_calibrate patches for ni pci-6035e with "init_setup() failed" problem
28 views
Skip to first unread message
wei jiang
unread,
May 20, 2012, 8:04:39 PM5/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Comedi: Linux Control and Measurement Device Interface
I found the problem is with the "comedi_calibrate/comedi_calibrate/
ni.c"
The function: "static int ni_setup_ao_observables( calibration_setup_t
*setup )" is supposed to return 0 when success and -1 when fail. But I
find that it has a normal path of exit without return sentence, that
cause the return value undefined.
So add one line "return 0" just before the last line of this function
solved the "init_setup() failed" problem for my PCI-6035e.
Ian Abbott
unread,
May 21, 2012, 5:50:58 AM5/21/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to comed...@googlegroups.com
Thanks for catching that. It was a result of one of my recent changes.
It's fixed in git now.