aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_waveforms.cpp
diff options
context:
space:
mode:
authornatetemple <nate.temple@ettus.com>2019-11-22 15:53:02 -0800
committerMartin Braun <martin.braun@ettus.com>2019-11-24 16:56:27 -0800
commitd3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0 (patch)
tree0125a624c517f0b72f555d550d6814c594320e57 /host/examples/tx_waveforms.cpp
parent0e184f7185bd8645051535f23b5cc50a80bda296 (diff)
downloaduhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.tar.gz
uhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.tar.bz2
uhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.zip
Examples: wrap up ref setting with option check
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;