diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-09 22:53:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-09 22:53:07 +0000 |
commit | 0b8cae2e5e68c9c76e775b946caa79809a5d0eec (patch) | |
tree | e0f4e8db1a45b8f896f767475b87de1e9dee112c /nuttx/arch/arm/src/lpc214x | |
parent | b315acedbc214d9a181e3f6b078916f67c7eb7fe (diff) | |
download | px4-nuttx-0b8cae2e5e68c9c76e775b946caa79809a5d0eec.tar.gz px4-nuttx-0b8cae2e5e68c9c76e775b946caa79809a5d0eec.tar.bz2 px4-nuttx-0b8cae2e5e68c9c76e775b946caa79809a5d0eec.zip |
Fix end-of-test comparison
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1022 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc214x')
-rw-r--r-- | nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c index a78c5022e..31098a6e7 100644 --- a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c +++ b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c @@ -1149,7 +1149,7 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep) */ privreq->req.xfrd += nbytesread; - if (privreq->req.len < privreq->req.xfrd || nbytesread < privep->ep.maxpacket) + if (privreq->req.xfrd >= privreq->req.len || nbytesread < privep->ep.maxpacket) { usbtrace(TRACE_COMPLETE(privep->epphy), privreq->req.xfrd); lpc214x_reqcomplete(privep, OK); |