diff options
author | natetemple <nate.temple@ettus.com> | 2019-11-22 15:53:02 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-24 16:56:27 -0800 |
commit | d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0 (patch) | |
tree | 0125a624c517f0b72f555d550d6814c594320e57 /host/examples/replay_samples_from_file.cpp | |
parent | 0e184f7185bd8645051535f23b5cc50a80bda296 (diff) | |
download | uhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.tar.gz uhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.tar.bz2 uhd-d3e1d6e9be75ba8dcd21c2ed466b9e6a316625b0.zip |
Examples: wrap up ref setting with option check
Diffstat (limited to 'host/examples/replay_samples_from_file.cpp')
-rw-r--r-- | host/examples/replay_samples_from_file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/examples/replay_samples_from_file.cpp b/host/examples/replay_samples_from_file.cpp index 9bd805ed8..1c0de27ba 100644 --- a/host/examples/replay_samples_from_file.cpp +++ b/host/examples/replay_samples_from_file.cpp @@ -123,8 +123,10 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) // Configure radio // Lock clocks - radio_ctrl->set_clock_source(ref); - + if (vm.count("ref")) { + radio_ctrl->set_clock_source(ref); + } + // Apply any radio arguments provided radio_ctrl->set_args(radio_args); |