libftdi Archives

Subject: Re: Bug in libftdipp

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 16 Aug 2010 18:04:40 +0200

On Monday, 16. August 2010 00:15:40 Hermann Kraus wrote:
> Libftdipp contains the following code:
> int Context::set_bitmode(unsigned char bitmask, unsigned char mode)
> {
>      return set_bitmode(bitmask, mode);
> }
> This is simply an infinite recursion.
> I'm not sure what this code is intended to do, I can only guess that the
> body of this function should be
> return ftdi_set_bitmode(d->ftdi, bitmask, mode);

According to the git commit, the idea was to call the second 
set_bitmode(enum ftdi_mpsse_mode mode) function.
Though currently it's an infinite recursion...

I'll apply your change, it's the simplest solution.


libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread