aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/benchmark_rx_rate.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-06 17:09:50 -0700
committerJosh Blum <josh@joshknows.com>2010-07-06 17:09:50 -0700
commit01067698803179cf8021d30c881eb16f17b184db (patch)
tree0176e1238fb06b639a3a8fdaa471c35044712c14 /host/examples/benchmark_rx_rate.cpp
parent7bf4370762087eeb2e590414869f53c90c70398d (diff)
parent7f3c4791f7d19d02b7d4515c763b9c2044e96170 (diff)
downloaduhd-01067698803179cf8021d30c881eb16f17b184db.tar.gz
uhd-01067698803179cf8021d30c881eb16f17b184db.tar.bz2
uhd-01067698803179cf8021d30c881eb16f17b184db.zip
Merge branch 'usrp2_mimo'
Diffstat (limited to 'host/examples/benchmark_rx_rate.cpp')
-rw-r--r--host/examples/benchmark_rx_rate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/examples/benchmark_rx_rate.cpp b/host/examples/benchmark_rx_rate.cpp
index 53f4a3c68..6984d7eff 100644
--- a/host/examples/benchmark_rx_rate.cpp
+++ b/host/examples/benchmark_rx_rate.cpp
@@ -49,7 +49,7 @@ static inline void test_device(
sdev->issue_stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS);
do {
size_t num_rx_samps = dev->recv(
- boost::asio::buffer(buff), md,
+ &buff.front(), buff.size(), md,
uhd::io_type_t::COMPLEX_FLOAT32,
uhd::device::RECV_MODE_ONE_PACKET
);
@@ -79,7 +79,7 @@ static inline void test_device(
//flush the buffers
while(dev->recv(
- boost::asio::buffer(buff), md,
+ &buff.front(), buff.size(), md,
uhd::io_type_t::COMPLEX_FLOAT32,
uhd::device::RECV_MODE_ONE_PACKET
));
@@ -124,7 +124,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::cout << std::endl;
std::cout << boost::format("Creating the usrp device with: %s...") % args << std::endl;
uhd::usrp::simple_usrp::sptr sdev = uhd::usrp::simple_usrp::make(args);
- std::cout << boost::format("Using Device: %s") % sdev->get_name() << std::endl;
+ std::cout << boost::format("Using Device: %s") % sdev->get_pp_string() << std::endl;
sdev->set_rx_rate(500e3); //initial rate
while(true){