diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-09-28 09:49:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-09-28 09:49:53 -0700 |
commit | 39888bb34060ce71b9270e1d0bb5bc027d2a336f (patch) | |
tree | fd9879a75725cce84441da40755b84d3cff653b8 | |
parent | bcd698bd216b3564c58fbd13cd743b79d36c50eb (diff) | |
download | uhd-39888bb34060ce71b9270e1d0bb5bc027d2a336f.tar.gz uhd-39888bb34060ce71b9270e1d0bb5bc027d2a336f.tar.bz2 uhd-39888bb34060ce71b9270e1d0bb5bc027d2a336f.zip |
examples: Fixed check for setting time on PPS vs. now
-rw-r--r-- | host/examples/benchmark_rate.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 { |