as3525v2-usb! fix suspicious calculation of next endpoint in INs chaining code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28281 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2010-10-14 19:15:22 +00:00
parent 900ec8d944
commit 6ebec89ac6

View file

@ -303,7 +303,7 @@ static void reset_endpoints(void)
/* Setup next chain for IN eps */ /* Setup next chain for IN eps */
FOR_EACH_IN_EP_AND_EP0(i, ep) FOR_EACH_IN_EP_AND_EP0(i, ep)
{ {
int next_ep = in_ep_list[(i + 2) % (NUM_IN_EP + 1)]; int next_ep = in_ep_list[(i + 1) % (NUM_IN_EP + 1)];
DIEPCTL(ep) = (DIEPCTL(ep) & ~bitm(DEPCTL, nextep)) | (next_ep << DEPCTL_nextep_bitp); DIEPCTL(ep) = (DIEPCTL(ep) & ~bitm(DEPCTL, nextep)) | (next_ep << DEPCTL_nextep_bitp);
} }
} }