aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/test_clock_synch.cpp8
-rw-r--r--host/examples/txrx_loopback_to_file.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/host/examples/test_clock_synch.cpp b/host/examples/test_clock_synch.cpp
index 7a4226345..50a1444f8 100644
--- a/host/examples/test_clock_synch.cpp
+++ b/host/examples/test_clock_synch.cpp
@@ -35,14 +35,14 @@ using namespace uhd::usrp_clock;
using namespace uhd::usrp;
void wait_for_pps(multi_usrp::sptr usrp, size_t chan, double timeout){
- boost::uint32_t last_pps_time = usrp->get_time_last_pps(chan).get_full_secs();
- boost::uint32_t system_time = uhd::time_spec_t::get_system_time().get_full_secs();
- boost::uint32_t exit_time = system_time + timeout;
+ time_t last_pps_time = usrp->get_time_last_pps(chan).get_full_secs();
+ time_t system_time = uhd::time_spec_t::get_system_time().get_full_secs();
+ time_t exit_time = system_time + timeout;
bool detected_pps = false;
//Otherwise, this would hang if the USRP doesn't detect any PPS
while(uhd::time_spec_t::get_system_time().get_full_secs() < exit_time){
- boost::uint32_t time_now = usrp->get_time_last_pps(chan).get_full_secs();
+ time_t time_now = usrp->get_time_last_pps(chan).get_full_secs();
if(last_pps_time < time_now){
detected_pps = true;
break;
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;