aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-03-11 17:00:39 -0700
committerMartin Braun <martin.braun@ettus.com>2015-03-11 17:05:10 -0700
commit2e594ae877f99411d54f1a8e3d9be274d8b9eb35 (patch)
tree2fa0a5f0fc501ab2362f424831b367610077c2d6 /host/examples
parenta7049e4ff79cdc205db76bf7270219f254073961 (diff)
parentcc7d37f114d5a14b4e45372f38324bf95115b6b9 (diff)
downloaduhd-2e594ae877f99411d54f1a8e3d9be274d8b9eb35.tar.gz
uhd-2e594ae877f99411d54f1a8e3d9be274d8b9eb35.tar.bz2
uhd-2e594ae877f99411d54f1a8e3d9be274d8b9eb35.zip
Merge branch 'maint'
Conflicts: host/include/uhd/transport/vrt_if_packet.hpp
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/txrx_loopback_to_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp
index d98c5187d..7dc3bd9c2 100644
--- a/host/examples/txrx_loopback_to_file.cpp
+++ b/host/examples/txrx_loopback_to_file.cpp
@@ -137,7 +137,7 @@ template<typename samp_type> void recv_to_file(
UHD_ASSERT_THROW(outfiles.size() == buffs.size());
UHD_ASSERT_THROW(buffs.size() == rx_channel_nums.size());
bool overflow_message = true;
- float timeout = settling_time + 0.1; //expected settling time + padding for first recv
+ float timeout = settling_time + 0.1f; //expected settling time + padding for first recv
//setup streaming
uhd::stream_cmd_t stream_cmd((num_requested_samples == 0)?
@@ -151,7 +151,7 @@ template<typename samp_type> void recv_to_file(
while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){
size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, timeout);
- timeout = 0.1; //small timeout for subsequent recv
+ timeout = 0.1f; //small timeout for subsequent recv
if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT) {
std::cout << boost::format("Timeout while streaming") << std::endl;