summaryrefslogtreecommitdiffstats
path: root/host/apps/discover_usrps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/apps/discover_usrps.cpp')
-rw-r--r--host/apps/discover_usrps.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/apps/discover_usrps.cpp b/host/apps/discover_usrps.cpp
index 92c90f89a..02c05b7cc 100644
--- a/host/apps/discover_usrps.cpp
+++ b/host/apps/discover_usrps.cpp
@@ -16,6 +16,7 @@
//
#include <uhd.hpp>
+#include <uhd/props.hpp>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <iostream>
@@ -58,7 +59,8 @@ int main(int argc, char *argv[]){
std::cout << "--------------------------------------------------" << std::endl;
std::cout << device_addrs[i] << std::endl << std::endl;
//make each device just to test (TODO: remove this)
- device::make(device_addrs[i]);
+ uhd::device::sptr dev = device::make(device_addrs[i]);
+ std::cout << wax::cast<std::string>((*dev)[uhd::DEVICE_PROP_MBOARD][uhd::MBOARD_PROP_NAME]) << std::endl;
}
return 0;