summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
682 int recovery_mode = (client->mode != kDfuMode); 682 int recovery_mode = (client->mode != kDfuMode);
683 if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; 683 if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE;
684 684
685 int packet_size = 32768; 685 int packet_size = recovery_mode ? 0x8000 : 0x800;
686 int last = length % packet_size; 686 int last = length % packet_size;
687 int packets = length / packet_size; 687 int packets = length / packet_size;
688 if (last != 0) { 688 if (last != 0) {