diff options
| author | 2012-07-04 21:29:22 +0200 | |
|---|---|---|
| committer | 2012-07-04 21:29:22 +0200 | |
| commit | a4d22e27c6fa5b78186804ba547e94b97b2925b4 (patch) | |
| tree | 17249bb93cdc119fc910532853121d91179f8c75 /libirecovery.c | |
| parent | 6ee1b3988fe1fe193a18b2957e05c3952482eb40 (diff) | |
| download | libirecovery-a4d22e27c6fa5b78186804ba547e94b97b2925b4.tar.gz libirecovery-a4d22e27c6fa5b78186804ba547e94b97b2925b4.tar.bz2 | |
Only send another ZLP if requested or regular uploads are broken
Diffstat (limited to 'libirecovery.c')
| -rw-r--r-- | libirecovery.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libirecovery.c b/libirecovery.c index 6be2319..f92cc50 100644 --- a/libirecovery.c +++ b/libirecovery.c | |||
| @@ -1023,8 +1023,10 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un | |||
| 1023 | } | 1023 | } |
| 1024 | } | 1024 | } |
| 1025 | 1025 | ||
| 1026 | // we send a pseudo ZLP here just in case | 1026 | if (dfuNotifyFinished == 2) { |
| 1027 | irecv_control_transfer(client, 0x21, 1, 0, 0, 0, 0, USB_TIMEOUT); | 1027 | // we send a pseudo ZLP here just in case |
| 1028 | irecv_control_transfer(client, 0x21, 1, 0, 0, 0, 0, USB_TIMEOUT); | ||
| 1029 | } | ||
| 1028 | 1030 | ||
| 1029 | irecv_reset(client); | 1031 | irecv_reset(client); |
| 1030 | } | 1032 | } |
