From a9c57c052b9fe05a006b8abfc86d120503e73fb5 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 22 Aug 2005 16:20:08 +0000 Subject: [PATCH] libftdi: (tomj) fix setting the baudrate on the second interface --- src/ftdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.1