Another place where the request size is set

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1021 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-10-09 22:52:34 +00:00
parent 8cb981c222
commit 0a3edb4702
+5
View File
@@ -1164,7 +1164,12 @@ static void usbclass_epbulkoutcomplete(FAR struct usbdev_ep_s *ep, struct usbdev
/* Requeue the read request */
#ifdef CONFIG_USBSER_BULKREQLEN
req->len = max(CONFIG_USBSER_BULKREQLEN, ep->maxpacket);
#else
req->len = ep->maxpacket;
#endif
ret = EP_SUBMIT(ep, req);
if (ret != OK)
{