--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From cc0548f60bfe2f840534b9776c23dd2f09d1c15e Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Sep 2011 12:50:24 +0200
Subject: 2232C is a BM type chips for baudrate calculations
---
src/ftdi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index 0c8d540..a2337ed 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -1161,7 +1161,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 || ftdi->type == TYPE_2232H ||
+ if (ftdi->type == TYPE_2232H ||
ftdi->type == TYPE_4232H || ftdi->type == TYPE_232H )
{
*index = (unsigned short)(encoded_divisor >> 8);
--
1.7.3.4
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|