libftdi: (tomj) fix setting the baudrate on the second interface
authorThomas Jarosch <opensource@intra2net.com>
Mon, 22 Aug 2005 16:20:08 +0000 (16:20 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Mon, 22 Aug 2005 16:20:08 +0000 (16:20 +0000)
src/ftdi.c

index 4cc36ce..4c4d31a 100644 (file)
@@ -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);