PIC32 USB, using IN BDTs where OUT BDTs should be used

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4311 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2012-01-18 23:50:26 +00:00
parent c67bc69d86
commit 40cbbac3af
1 changed files with 2 additions and 2 deletions

View File

@ -2076,9 +2076,9 @@ static void pic32mx_ep0transfer(struct pic32mx_usbdev_s *priv, uint16_t status)
/* It was an EP0 OUT transaction. Get the index to the BDT. */
#if CONFIG_USB_PINGPONG
index = ((status & USB_STAT_PPBI) == 0 ? EP0_IN_EVEN : EP0_IN_ODD);
index = ((status & USB_STAT_PPBI) == 0 ? EP0_OUT_EVEN : EP0_OUT_ODD);
#else
index = EP0_IN_EVEN;
index = EP0_OUT_EVEN;
#endif
bdt = &g_bdt[index];
priv->eplist[0].bdtout = bdt;