From 20c75635c7f098d027604887b1b3a42e289b2fde Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 14 Jan 2024 00:48:27 +0000 Subject: [PATCH] hosted/cmsis_dap: Fixed the transfer sizing for the Bulk case too --- src/platforms/hosted/cmsis_dap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/hosted/cmsis_dap.c b/src/platforms/hosted/cmsis_dap.c index 8c4d2072741..8caed0da557 100644 --- a/src/platforms/hosted/cmsis_dap.c +++ b/src/platforms/hosted/cmsis_dap.c @@ -259,6 +259,8 @@ static bool dap_init_bulk(void) DEBUG_ERROR("libusb_claim_interface() failed\n"); return false; } + /* Base the packet size on the one retrieved from the device descriptors */ + packet_size = bmda_probe_info.max_packet_length; in_ep = bmda_probe_info.in_ep; out_ep = bmda_probe_info.out_ep; return true;