diff options
author | Martin Szulecki | 2012-07-04 21:28:17 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-04 21:28:17 +0200 |
commit | 6ee1b3988fe1fe193a18b2957e05c3952482eb40 (patch) | |
tree | b30c4d8a560484933d57a6b25c39174ee16e3e34 | |
parent | 99e00a1610bc71df7393fa3e3da44995f3c48b12 (diff) | |
download | libirecovery-6ee1b3988fe1fe193a18b2957e05c3952482eb40.tar.gz libirecovery-6ee1b3988fe1fe193a18b2957e05c3952482eb40.tar.bz2 |
Send a ZLP packet if required for DFU mode notification
-rw-r--r-- | libirecovery.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libirecovery.c b/libirecovery.c index c061b2f..6be2319 100644 --- a/libirecovery.c +++ b/libirecovery.c @@ -1022,6 +1022,10 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un return error; } } + + // we send a pseudo ZLP here just in case + irecv_control_transfer(client, 0x21, 1, 0, 0, 0, 0, USB_TIMEOUT); + irecv_reset(client); } |