Only transfer one block per re-tune
This commit is contained in:
@ -77,13 +77,14 @@ void scan_mode(void) {
|
|||||||
if ( usb_bulk_buffer_offset >= 16384
|
if ( usb_bulk_buffer_offset >= 16384
|
||||||
&& phase == 1
|
&& phase == 1
|
||||||
&& transceiver_mode() != TRANSCEIVER_MODE_OFF) {
|
&& transceiver_mode() != TRANSCEIVER_MODE_OFF) {
|
||||||
usb_transfer_schedule_block(
|
if (blocks_queued == 2)
|
||||||
(transceiver_mode() == TRANSCEIVER_MODE_RX)
|
usb_transfer_schedule_block(
|
||||||
? &usb_endpoint_bulk_in : &usb_endpoint_bulk_out,
|
(transceiver_mode() == TRANSCEIVER_MODE_RX)
|
||||||
&usb_bulk_buffer[0x0000],
|
? &usb_endpoint_bulk_in : &usb_endpoint_bulk_out,
|
||||||
0x4000,
|
&usb_bulk_buffer[0x0000],
|
||||||
NULL, NULL
|
0x4000,
|
||||||
);
|
NULL, NULL
|
||||||
|
);
|
||||||
phase = 0;
|
phase = 0;
|
||||||
blocks_queued++;
|
blocks_queued++;
|
||||||
}
|
}
|
||||||
@ -92,13 +93,14 @@ void scan_mode(void) {
|
|||||||
if ( usb_bulk_buffer_offset < 16384
|
if ( usb_bulk_buffer_offset < 16384
|
||||||
&& phase == 0
|
&& phase == 0
|
||||||
&& transceiver_mode() != TRANSCEIVER_MODE_OFF) {
|
&& transceiver_mode() != TRANSCEIVER_MODE_OFF) {
|
||||||
usb_transfer_schedule_block(
|
if (blocks_queued == 2)
|
||||||
(transceiver_mode() == TRANSCEIVER_MODE_RX)
|
usb_transfer_schedule_block(
|
||||||
? &usb_endpoint_bulk_in : &usb_endpoint_bulk_out,
|
(transceiver_mode() == TRANSCEIVER_MODE_RX)
|
||||||
&usb_bulk_buffer[0x4000],
|
? &usb_endpoint_bulk_in : &usb_endpoint_bulk_out,
|
||||||
0x4000,
|
&usb_bulk_buffer[0x4000],
|
||||||
NULL, NULL
|
0x4000,
|
||||||
);
|
NULL, NULL
|
||||||
|
);
|
||||||
phase = 1;
|
phase = 1;
|
||||||
blocks_queued++;
|
blocks_queued++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user