laforge
/
openbts-osmo
Archived
1
0
Fork 0

Revert "uhd: temporary fix for lingering packet bug"

This reverts commit f5e4628f1f.

Fix was moved upstream.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-02-28 18:00:04 -05:00
parent f5e4628f1f
commit a8dd7a370b
1 changed files with 0 additions and 18 deletions

View File

@ -270,24 +270,6 @@ bool UHDDevice::open()
usrpDevice->set_clock_config(clock_config);
// Flush buffers for lingering packet on some NICs
uhd::stream_cmd_t cmd =
uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE;
cmd.num_samps = 1;
cmd.stream_now = true;
usrpDevice->issue_stream_cmd(cmd);
uhd::rx_metadata_t md;
uint32_t recvBuf[recvSamplesPerPacket];
usrpDevice->get_device()->recv(
(void*)recvBuf,
recvSamplesPerPacket,
md,
uhd::io_type_t::COMPLEX_INT16,
uhd::device::RECV_MODE_ONE_PACKET);
// Print configuration
LOG(INFO) << usrpDevice->get_pp_string();