From: Thomas Jarosch Date: Mon, 22 Aug 2005 16:20:08 +0000 (+0000) Subject: libftdi: (tomj) fix setting the baudrate on the second interface X-Git-Tag: v0.7~1 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=a9c57c052b9fe05a006b8abfc86d120503e73fb5 libftdi: (tomj) fix setting the baudrate on the second interface --- diff --git a/src/ftdi.c b/src/ftdi.c index 4cc36ce..4c4d31a 100644 --- 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);