Skip to content

Commit

Permalink
Merge pull request #1412 from martinling/revert-8k-transfers
Browse files Browse the repository at this point in the history
Revert "Reduce firmware USB transfer size from 16KB to 8KB."
  • Loading branch information
mossmann authored Feb 15, 2024
2 parents f6598e7 + 72a0a01 commit 840b6f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions firmware/hackrf_usb/usb_api_transceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 840b6f4

Please sign in to comment.