aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-07-17 17:59:54 -0700
committerBen Hilburn <ben.hilburn@ettus.com>2014-07-17 17:59:54 -0700
commit4f21de2bcc99a92d4eff4c8ac8057c5921be68e8 (patch)
tree74da9747317a6ea75945e1600e339b177b4d3aa8
parentbd2de9c6ccb48ef9fd18a9a4c431b1cae90c1032 (diff)
parentf7ff585ef3b41e9b5923c7b8ded72e072f379453 (diff)
downloaduhd-4f21de2bcc99a92d4eff4c8ac8057c5921be68e8.tar.gz
uhd-4f21de2bcc99a92d4eff4c8ac8057c5921be68e8.tar.bz2
uhd-4f21de2bcc99a92d4eff4c8ac8057c5921be68e8.zip
Merge branch 'origin/martin/utils/init_only_probe'
-rw-r--r--host/utils/uhd_usrp_probe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp
index 98ed84850..04ccc1e5a 100644
--- a/host/utils/uhd_usrp_probe.cpp
+++ b/host/utils/uhd_usrp_probe.cpp
@@ -192,6 +192,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("args", po::value<std::string>()->default_value(""), "device address args")
("tree", "specify to print a complete property tree")
("string", po::value<std::string>(), "query a string value from the properties tree")
+ ("init-only", "skip all queries, only initialize device")
;
po::variables_map vm;
@@ -218,7 +219,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
if (vm.count("tree") != 0) print_tree("/", tree);
- else std::cout << make_border(get_device_pp_string(tree)) << std::endl;
+ else if (not vm.count("init-only")) std::cout << make_border(get_device_pp_string(tree)) << std::endl;
return EXIT_SUCCESS;
}