mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
@@ -1164,7 +1164,12 @@ static void usbclass_epbulkoutcomplete(FAR struct usbdev_ep_s *ep, struct usbdev
|
|||||||
|
|
||||||
/* Requeue the read request */
|
/* Requeue the read request */
|
||||||
|
|
||||||
|
#ifdef CONFIG_USBSER_BULKREQLEN
|
||||||
|
req->len = max(CONFIG_USBSER_BULKREQLEN, ep->maxpacket);
|
||||||
|
#else
|
||||||
req->len = ep->maxpacket;
|
req->len = ep->maxpacket;
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = EP_SUBMIT(ep, req);
|
ret = EP_SUBMIT(ep, req);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user