Revert "Reduce firmware USB transfer size from 16KB to 8KB."

This reverts commit fefa4f0e4592b8fb235d38e60fb5daea4974ff95.
This commit is contained in:
Martin Ling
2024-02-08 01:07:11 +00:00
parent f6598e7b14
commit 72a0a01190

View File

@ -47,7 +47,7 @@
#include "usb_endpoint.h" #include "usb_endpoint.h"
#include "usb_api_sweep.h" #include "usb_api_sweep.h"
#define USB_TRANSFER_SIZE 0x2000 #define USB_TRANSFER_SIZE 0x4000
typedef struct { typedef struct {
uint32_t freq_mhz; uint32_t freq_mhz;
@ -453,8 +453,7 @@ void tx_mode(uint32_t seq)
baseband_streaming_enable(&sgpio_config); baseband_streaming_enable(&sgpio_config);
started = true; started = true;
} }
if ((usb_count - m0_state.m0_count) <= if ((usb_count - m0_state.m0_count) <= USB_TRANSFER_SIZE) {
(USB_BULK_BUFFER_SIZE - USB_TRANSFER_SIZE)) {
usb_transfer_schedule_block( usb_transfer_schedule_block(
&usb_endpoint_bulk_out, &usb_endpoint_bulk_out,
&usb_bulk_buffer[usb_count & USB_BULK_BUFFER_MASK], &usb_bulk_buffer[usb_count & USB_BULK_BUFFER_MASK],