Stop dropping buffers in firmware and allow the host to make the decision.

This commit is contained in:
Dominic Spill
2016-10-03 12:39:30 +01:00
committed by Mike Walters
parent 6639ab3e09
commit 6b831d31cc

View File

@ -89,13 +89,12 @@ void sweep_mode(void) {
if (transfer) { if (transfer) {
*(uint16_t*)buffer = 0x7F7F; *(uint16_t*)buffer = 0x7F7F;
*(uint16_t*)(buffer+2) = sweep_freq; *(uint16_t*)(buffer+2) = sweep_freq;
if (blocks_queued > 1) usb_transfer_schedule_block(
usb_transfer_schedule_block( &usb_endpoint_bulk_in,
&usb_endpoint_bulk_in, buffer,
buffer, 0x4000,
0x4000, NULL, NULL
NULL, NULL );
);
transfer = false; transfer = false;
} }