From 72a0a011900ae9f49ce0014487496a86bd46cd05 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Thu, 8 Feb 2024 01:07:11 +0000 Subject: [PATCH] Revert "Reduce firmware USB transfer size from 16KB to 8KB." This reverts commit fefa4f0e4592b8fb235d38e60fb5daea4974ff95. --- firmware/hackrf_usb/usb_api_transceiver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/hackrf_usb/usb_api_transceiver.c b/firmware/hackrf_usb/usb_api_transceiver.c index a6cf86cc5..c639a11c4 100644 --- a/firmware/hackrf_usb/usb_api_transceiver.c +++ b/firmware/hackrf_usb/usb_api_transceiver.c @@ -47,7 +47,7 @@ #include "usb_endpoint.h" #include "usb_api_sweep.h" -#define USB_TRANSFER_SIZE 0x2000 +#define USB_TRANSFER_SIZE 0x4000 typedef struct { uint32_t freq_mhz; @@ -453,8 +453,7 @@ void tx_mode(uint32_t seq) baseband_streaming_enable(&sgpio_config); started = true; } - if ((usb_count - m0_state.m0_count) <= - (USB_BULK_BUFFER_SIZE - USB_TRANSFER_SIZE)) { + if ((usb_count - m0_state.m0_count) <= USB_TRANSFER_SIZE) { usb_transfer_schedule_block( &usb_endpoint_bulk_out, &usb_bulk_buffer[usb_count & USB_BULK_BUFFER_MASK],