libftdi Archives

Subject: Re: [bug] ftdi c++ bindings broken?

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 19 Oct 2011 10:41:46 +0200
>>>>> "David" == David Kuehling <dvdkhlng@xxxxxx> writes:

    David> hi, just tried to make the ftdipp library from git head work, but
    David> my test program already fails in Context::open(vendor,product).
    David> The other libftdi programs supplied in the example/ directory
    David> seem to work.

    David> open(vendor,product) calls ftdi_usb_open(), which succeeds, then
    David> calls get_strings_and_reopen(), which calls get_strings(), which
    David> calls ftdi_usb_get_strings(), which fails, as it passes in d->dev
    David> which hasn't been set yet.

    David> Maybe the correct fix is to set d->dev to d->ftdi->dev after
    David> ftdi_usb_open()?

Perhaps create a small example program in the example directory that shows
the error. Then create a patch to fix that error and send the patches...

Bye
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread