summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/usb-s3c6400x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 16cabb6ccf..b1252b8645 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -192,12 +192,12 @@ static void handle_ep_int(int out)
{
if (!out)
{
- if (endpoints[i].busy)
+ if (endpoints[ep].busy)
{
- endpoints[i].busy = false;
- endpoints[i].rc = 1;
- endpoints[i].done = true;
- semaphore_release(&endpoints[i].complete);
+ endpoints[ep].busy = false;
+ endpoints[ep].rc = 1;
+ endpoints[ep].done = true;
+ semaphore_release(&endpoints[ep].complete);
}
}
else