git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6645ac5
)
2232C is a BM type chips for baudrate calculations
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Tue, 6 Sep 2011 12:08:13 +0000 (14:08 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 7 Sep 2011 08:49:37 +0000 (10:49 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
0c8d540
..
a2337ed
100644
(file)
--- 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);