summaryrefslogtreecommitdiffstats
path: root/libirecovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-04 13:06:49 +0200
committerGravatar Nikias Bassen2012-07-04 13:06:49 +0200
commitb0edd4c1f1e7a55191cd9e9e2780ad2cc6790e75 (patch)
tree558b1bab3a41d39fa4a19446288658beee2c1212 /libirecovery.c
parent922db4ec3e43dce111b68343db1c5b8d52ebbddd (diff)
downloadlibirecovery-b0edd4c1f1e7a55191cd9e9e2780ad2cc6790e75.tar.gz
libirecovery-b0edd4c1f1e7a55191cd9e9e2780ad2cc6790e75.tar.bz2
use smaller buffer size for DFU mode
Diffstat (limited to 'libirecovery.c')
-rw-r--r--libirecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libirecovery.c b/libirecovery.c
index 134e677..ffabd84 100644
--- a/libirecovery.c
+++ b/libirecovery.c
@@ -682,7 +682,7 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un
int recovery_mode = (client->mode != kDfuMode);
if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE;
- int packet_size = 32768;
+ int packet_size = recovery_mode ? 0x8000 : 0x800;
int last = length % packet_size;
int packets = length / packet_size;
if (last != 0) {