Browse Source

ft232r: Set output buffer size to 4096 bytes

wMaxPacketSize is something else (often 64 bytes)
Using 4096 greatly improves firmware upload speeds on dumb HCIs
Luke Dashjr 13 years ago
parent
commit
3a833e85c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ft232r.c

+ 1 - 1
ft232r.c

@@ -198,7 +198,7 @@ struct ft232r_device_handle *ft232r_open(libusb_device *dev)
 	}
 	ftdi->i = altcfg->endpoint[0].bEndpointAddress;
 	ftdi->o = altcfg->endpoint[1].bEndpointAddress;
-	ftdi->osz = altcfg->endpoint[1].wMaxPacketSize;
+	ftdi->osz = 0x1000;
 	ftdi->obuf = malloc(ftdi->osz);
 	libusb_free_config_descriptor(cfg);