mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Same as last check-in, just implemented more sanely
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1880 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1078,7 +1078,7 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
|
||||
|
||||
/* Send the largest number of bytes that we can in this packet */
|
||||
|
||||
buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
|
||||
buf = privreq->req.buf + privreq->req.xfrd;
|
||||
lpc214x_epwrite(privep->epphy, buf, nbytes);
|
||||
|
||||
/* Update for the next time through the loop */
|
||||
@@ -1139,7 +1139,7 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep)
|
||||
|
||||
/* Receive the next packet */
|
||||
|
||||
buf = (ubyte*)privreq->req.buf + privreq->req.xfrd;
|
||||
buf = privreq->req.buf + privreq->req.xfrd;
|
||||
nbytesread = lpc214x_epread(privep->epphy, buf, privep->ep.maxpacket);
|
||||
if (nbytesread < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user