diff options
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 10 |
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) | |||
192 | { | 192 | { |
193 | if (!out) | 193 | if (!out) |
194 | { | 194 | { |
195 | if (endpoints[i].busy) | 195 | if (endpoints[ep].busy) |
196 | { | 196 | { |
197 | endpoints[i].busy = false; | 197 | endpoints[ep].busy = false; |
198 | endpoints[i].rc = 1; | 198 | endpoints[ep].rc = 1; |
199 | endpoints[i].done = true; | 199 | endpoints[ep].done = true; |
200 | semaphore_release(&endpoints[i].complete); | 200 | semaphore_release(&endpoints[ep].complete); |
201 | } | 201 | } |
202 | } | 202 | } |
203 | else | 203 | else |