mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:13:33 +08:00
Minor updates for PIC32 USB device driver bugs
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4497 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1013,7 +1013,7 @@ static void pic32mx_rqrestart(int argc, uint32_t arg1, ...)
|
||||
privep->stalled = false;
|
||||
privep->txnullpkt = false;
|
||||
|
||||
/* Check the request at the head of the endpoint's active request queue */
|
||||
/* Check the request at the head of the endpoint's pending request queue */
|
||||
|
||||
privreq = pic32mx_rqhead(&privep->pend);
|
||||
if (privreq)
|
||||
@@ -1646,6 +1646,7 @@ static int pic32mx_rdrequest(struct pic32mx_usbdev_s *priv,
|
||||
if (ret == OK)
|
||||
{
|
||||
privreq = pic32mx_remfirst(&privep->pend);
|
||||
DEBUGASSERT(privreq != NULL);
|
||||
pic32mx_addlast(&privep->active, privreq);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user