From f7ff585ef3b41e9b5923c7b8ded72e072f379453 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 16 May 2014 20:42:09 +0200 Subject: utils: uhd_usrp_probe gets argument --init-only This will run the tool without the output (unless --tree is provided). Using --init-only, uhd_usrp_probe can be used to simply test a device in more detail than doing a uhd_find_device, but the output of the device initalization is not scrolled by because of the device info output. --- host/utils/uhd_usrp_probe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()->default_value(""), "device address args") ("tree", "specify to print a complete property tree") ("string", po::value(), "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; } -- cgit v1.2.3