aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_waveforms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/tx_waveforms.cpp')
-rw-r--r--host/examples/tx_waveforms.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp
index 1bc762f57..173f339e2 100644
--- a/host/examples/tx_waveforms.cpp
+++ b/host/examples/tx_waveforms.cpp
@@ -104,7 +104,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
}
// Lock mboard clocks
- usrp->set_clock_source(ref);
+ if (vm.count("ref")) {
+ usrp->set_clock_source(ref);
+ }
std::cout << boost::format("Using Device: %s") % usrp->get_pp_string() << std::endl;