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 | |
| parent | 900ec8d9441fab73d092e2582a15730978f20758 (diff) | |
| download | rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.zip rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.tar.gz rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.tar.bz2 rockbox-6ebec89ac675de86f989b60c43c9b52f652c515d.tar.xz | |
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
| -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 63f6e83..a507f54 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) /* Setup next chain for IN eps */ 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); } } |