libftdi Archives

Subject: Re: libftdi1: Fixe Fixme in CBUS decoding

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 23 May 2011 18:02:50 +0200
Hello Uwe,

On Friday, 20. May 2011 18:07:37 Uwe Bonnes wrote:
> +                    if (i < 4)
> +                        /* Running MPROG show that C0..3 have fixed
> function Synchronous +                           Bit Bang mode */
> +                        fprintf(stdout,"C%d BB Function: %s\n", i,
> +                                cbus_BB[i]);
> +                    else
> +                        fprintf(stdout, "Unknown CBUS mode. Might be
> special mode?\n"); }

Looking at that code again, doesn't it just iterate over
the field names in cbus_BB unconditionally?

So it outputs something like this:
C0 BB Function: RXF
C1 BB Function: TXE
C2 BB Function: RD
C3 BB Function: WR

?

Thomas

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

Current Thread