summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/usb_updater/usb_updater.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c
index 6318d340e2..1ce637bf6d 100644
--- a/extra/usb_updater/usb_updater.c
+++ b/extra/usb_updater/usb_updater.c
@@ -1254,7 +1254,8 @@ int main(int argc, char *argv[])
targ.shv[0].minor);
printf("RW %d.%d.%d\n", targ.shv[1].epoch, targ.shv[1].major,
targ.shv[1].minor);
- send_done(&td.uep);
+ if (td.ep_type == usb_xfer)
+ send_done(&td.uep);
}
if (data) {