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
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
to comed...@googlegroups.com
Thanks for catching that. It was a result of one of my recent changes.
It's fixed in git now.

--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Reply all
Reply to author
Forward
0 new messages