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:
parent
c86c7ed118
commit
f43338e2d6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue