summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/gr_uhd_usrp_sink.cc
diff options
context:
space:
mode:
authorNicholas Corgan2012-04-03 16:56:38 -0700
committerNicholas Corgan2012-04-03 16:56:38 -0700
commit20a083fe0f7990b8796e2e7816687d6c89bda981 (patch)
tree32c8a5ce3556b3d5e4beb908e122ad33835917c0 /gr-uhd/lib/gr_uhd_usrp_sink.cc
parentc5ad101e0f93b26521507672813ef28ea533482a (diff)
downloadgnuradio-20a083fe0f7990b8796e2e7816687d6c89bda981.tar.gz
gnuradio-20a083fe0f7990b8796e2e7816687d6c89bda981.tar.bz2
gnuradio-20a083fe0f7990b8796e2e7816687d6c89bda981.zip
gr-uhd: get_usrp_info has help info and can only be called with a recent enough version of UHD
Diffstat (limited to 'gr-uhd/lib/gr_uhd_usrp_sink.cc')
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index a35474664..66be056df 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -66,12 +66,12 @@ public:
_dev = uhd::usrp::multi_usrp::make(device_addr);
}
- std::vector<std::string> list_property_tree(const std::string &path){
- return _dev->list_property_tree(path);
- }
-
uhd::dict<std::string, std::string> get_usrp_info(size_t mboard, size_t chan){
+ #ifdef UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
return _dev->get_usrp_info(mboard, chan);
+ #else
+ throw std::runtime_error("not implemented in this version");
+ #endif
}
void set_subdev_spec(const std::string &spec, size_t mboard){