aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_timed_samples.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-03 16:50:45 -0700
committerJosh Blum <josh@joshknows.com>2010-07-05 13:49:00 -0700
commit11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770 (patch)
tree35f29c651cf400b03c5aba6939dcc03cc35e2ea7 /host/examples/tx_timed_samples.cpp
parent52ea9b8f90c56c12e978387aee670b45d93d74a5 (diff)
downloaduhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.tar.gz
uhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.tar.bz2
uhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.zip
uhd: replaced old send and recv with inline wrappers that take a single buffer and look more like the vectored send/recv
Diffstat (limited to 'host/examples/tx_timed_samples.cpp')
-rw-r--r--host/examples/tx_timed_samples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp
index 846d9b6f4..4226aa4c8 100644
--- a/host/examples/tx_timed_samples.cpp
+++ b/host/examples/tx_timed_samples.cpp
@@ -81,8 +81,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//send the entire buffer, let the driver handle fragmentation
size_t num_tx_samps = dev->send(
- boost::asio::buffer(buff),
- md, uhd::io_type_t::COMPLEX_FLOAT32,
+ &buff.front(), buff.size(), md,
+ uhd::io_type_t::COMPLEX_FLOAT32,
uhd::device::SEND_MODE_FULL_BUFF
);
std::cout << std::endl << boost::format("Sent %d samples") % num_tx_samps << std::endl;