aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/benchmark_rate.cpp7
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 {