diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-18 17:48:14 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-18 17:48:14 -0800 |
commit | 6fdaccea1fba15b754945d9be7da0ed4a3861633 (patch) | |
tree | a5822f02409cc2d69f0566b4ea6e787b0d8ca43d /host/apps | |
parent | b4e5df4080b276ff1bf7cf896bd60630cdaab652 (diff) | |
download | uhd-6fdaccea1fba15b754945d9be7da0ed4a3861633.tar.gz uhd-6fdaccea1fba15b754945d9be7da0ed4a3861633.tar.bz2 uhd-6fdaccea1fba15b754945d9be7da0ed4a3861633.zip |
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.
Diffstat (limited to 'host/apps')
-rw-r--r-- | host/apps/discover_usrps.cpp | 4 |
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; |