9
0
Fork 0

Another place where the request size is set

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1021 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-10-09 22:52:34 +00:00
parent c86c7ed118
commit f43338e2d6
1 changed files with 5 additions and 0 deletions

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)
{