diff options
Diffstat (limited to 'host/examples/tx_samples_from_file.cpp')
-rw-r--r-- | host/examples/tx_samples_from_file.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/examples/tx_samples_from_file.cpp b/host/examples/tx_samples_from_file.cpp index 382d42a40..7493718d2 100644 --- a/host/examples/tx_samples_from_file.cpp +++ b/host/examples/tx_samples_from_file.cpp @@ -103,7 +103,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) uhd::usrp::multi_usrp::sptr usrp = uhd::usrp::multi_usrp::make(args); // 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")) |