From d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0 Mon Sep 17 00:00:00 2001 From: natetemple Date: Fri, 22 Nov 2019 15:53:02 -0800 Subject: Examples: wrap up ref setting with option check --- host/examples/tx_waveforms.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/examples/tx_waveforms.cpp') 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; -- cgit v1.2.3