mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
900ec8d944
commit
6ebec89ac6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue