libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.16-15-g1416eb1

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 3 Nov 2009 17:43:59 +0100 (CET)
The branch, master has been updated
       via  1416eb1443005be219a8f76b6f05bff947ccce4a (commit)
      from  ef6f483889aa3d719a676f7f32303c4232941e57 (commit)


- Log -----------------------------------------------------------------
commit 1416eb1443005be219a8f76b6f05bff947ccce4a
Author: Thimo Eichstaedt <abc@xxxxxxxxxx>
Date:   Tue Nov 3 17:43:43 2009 +0100

    Fix usb index in ftdi_convert_baudrate() for FT2232H/FT4232H chips

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index d2c4a11..5d6a221 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -822,7 +822,7 @@ static int ftdi_convert_baudrate(int baudrate, struct 
ftdi_context *ftdi,
     }
     // Split into "value" and "index" values
     *value = (unsigned short)(encoded_divisor & 0xFFFF);
-    if (ftdi->type == TYPE_2232C)
+    if (ftdi->type == TYPE_2232C || ftdi->type == TYPE_2232H || ftdi->type == 
TYPE_4232H)
     {
         *index = (unsigned short)(encoded_divisor >> 8);
         *index &= 0xFF00;


hooks/post-receive
-- 
A library to talk to FTDI chips

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

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.16-15-g1416eb1, libftdi-git <=