aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_samples_to_udp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/rx_samples_to_udp.cpp')
-rw-r--r--host/examples/rx_samples_to_udp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index a4deb9dcf..002d30ec4 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -65,7 +65,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
std::cout << boost::format("Using Device: %s") % usrp->get_pp_string() << std::endl;
// Lock mboard clocks
- usrp->set_clock_source(ref);
+ if (vm.count("ref")) {
+ usrp->set_clock_source(ref);
+ }
// always select the subdevice first, the channel mapping affects the other settings
if (vm.count("subdev")) {