From 20a083fe0f7990b8796e2e7816687d6c89bda981 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Tue, 3 Apr 2012 16:56:38 -0700 Subject: gr-uhd: get_usrp_info has help info and can only be called with a recent enough version of UHD --- gr-uhd/lib/gr_uhd_usrp_source.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gr-uhd/lib/gr_uhd_usrp_source.cc') diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc index fd0cf9d94..ba87ae8e0 100644 --- a/gr-uhd/lib/gr_uhd_usrp_source.cc +++ b/gr-uhd/lib/gr_uhd_usrp_source.cc @@ -70,12 +70,12 @@ public: _dev = uhd::usrp::multi_usrp::make(device_addr); } - std::vector list_property_tree(const std::string &path){ - return _dev->list_property_tree(path); - } - uhd::dict 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){ -- cgit