diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2010-10-14 19:15:22 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2010-10-14 19:15:22 +0000 |
commit | 6ebec89ac675de86f989b60c43c9b52f652c515d (patch) | |
tree | 54f41e73c677671e6c237db9f95e4f8a0d75c3fb /firmware | |
parent | 900ec8d9441fab73d092e2582a15730978f20758 (diff) | |
download | rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.tar.gz rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c index 63f6e83dff..a507f54355 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.c +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c | |||
@@ -303,7 +303,7 @@ static void reset_endpoints(void) | |||
303 | /* Setup next chain for IN eps */ | 303 | /* Setup next chain for IN eps */ |
304 | FOR_EACH_IN_EP_AND_EP0(i, ep) | 304 | FOR_EACH_IN_EP_AND_EP0(i, ep) |
305 | { | 305 | { |
306 | int next_ep = in_ep_list[(i + 2) % (NUM_IN_EP + 1)]; | 306 | int next_ep = in_ep_list[(i + 1) % (NUM_IN_EP + 1)]; |
307 | DIEPCTL(ep) = (DIEPCTL(ep) & ~bitm(DEPCTL, nextep)) | (next_ep << DEPCTL_nextep_bitp); | 307 | DIEPCTL(ep) = (DIEPCTL(ep) & ~bitm(DEPCTL, nextep)) | (next_ep << DEPCTL_nextep_bitp); |
308 | } | 308 | } |
309 | } | 309 | } |