From 39888bb34060ce71b9270e1d0bb5bc027d2a336f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 28 Sep 2016 09:49:53 -0700 Subject: examples: Fixed check for setting time on PPS vs. now --- host/examples/benchmark_rate.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index 1ea754ef2..6854fa43d 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -433,7 +433,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } std::cout << boost::format("Setting device timestamp to 0...") << std::endl; - bool sync_channels = (pps == "mimo" or ref == "mimo" or (rx_channel_nums.size() <= 1 and tx_channel_nums.size() <= 1)); + const bool sync_channels = + pps == "mimo" or + ref == "mimo" or + rx_channel_nums.size() > 1 or + tx_channel_nums.size() > 1 + ; if (!sync_channels) { usrp->set_time_now(0.0); } else { -- cgit v1.2.3