From 6fdaccea1fba15b754945d9be7da0ed4a3861633 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 18 Feb 2010 17:48:14 -0800 Subject: Added special case for empty dboard slot (none id 0xffff) Added error handling in the dboard base classes for mishandling the none id. Added better to string function for the dboard ids. Added get methods for dboard classes to get their ids. --- host/apps/discover_usrps.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/apps/discover_usrps.cpp') 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 +#include #include #include #include @@ -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((*dev)[uhd::DEVICE_PROP_MBOARD][uhd::MBOARD_PROP_NAME]) << std::endl; } return 0; -- cgit v1.2.3