git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e640870
)
libftdi: (tomj) fix setting the baudrate on the second interface
author
Thomas Jarosch
<opensource@intra2net.com>
Mon, 22 Aug 2005 16:20:08 +0000 (16:20 +0000)
committer
Thomas Jarosch
<opensource@intra2net.com>
Mon, 22 Aug 2005 16:20:08 +0000 (16:20 +0000)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
4cc36ce
..
4c4d31a
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-462,7
+462,7
@@
static int ftdi_convert_baudrate(int baudrate, struct ftdi_context *ftdi,
if(ftdi->type == TYPE_2232C) {
*index = (unsigned short)(encoded_divisor >> 8);
*index &= 0xFF00;
- *index |= ftdi->interface;
+ *index |= ftdi->index;
}
else
*index = (unsigned short)(encoded_divisor >> 16);