aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-02-23 11:22:43 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-23 14:29:52 -0800
commit076dd81984164b9e6a8e38ce2fa68fabf1db3b47 (patch)
tree975e20ea2b8fc0d518b6b78412c0d30cd65de04a
parentc0a09e2f060045fb2954cc2194ac7eb48a873e4b (diff)
downloaduhd-076dd81984164b9e6a8e38ce2fa68fabf1db3b47.tar.gz
uhd-076dd81984164b9e6a8e38ce2fa68fabf1db3b47.tar.bz2
uhd-076dd81984164b9e6a8e38ce2fa68fabf1db3b47.zip
fixup! x300,n230,e300: changes to adapt to new usrp API
Fixes some compiler warnings.
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp4
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp4
-rw-r--r--host/lib/usrp/x300/x300_radio_ctrl_impl.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 88486dba6..4a96b514b 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -664,8 +664,8 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s
case usrp::gpio_atr::GPIO_SRC:
_tree->create<std::vector<std::string>>(mb_path / "gpio" / "FP0" / attr.second)
.set(std::vector<std::string>(32, usrp::gpio_atr::default_attr_value_map.at(attr.first)))
- .add_coerced_subscriber([this](const std::vector<std::string> str_val){
- throw uhd::runtime_error("This device does not support set SRC attribute.");
+ .add_coerced_subscriber([this](const std::vector<std::string>&){
+ throw uhd::runtime_error("This device does not support setting the GPIO_SRC attribute.");
});
break;
case usrp::gpio_atr::GPIO_CTRL:
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp
index b4011eda0..78b1f05b1 100644
--- a/host/lib/usrp/e300/e300_impl.cpp
+++ b/host/lib/usrp/e300/e300_impl.cpp
@@ -526,8 +526,8 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr)
case usrp::gpio_atr::GPIO_SRC:
_tree->create<std::vector<std::string>>(mb_path / "gpio" / "INT0" / attr.second)
.set(std::vector<std::string>(32, usrp::gpio_atr::default_attr_value_map.at(attr.first)))
- .add_coerced_subscriber([this](const std::vector<std::string> str_val){
- throw uhd::runtime_error("This device does not support set SRC attribute.");
+ .add_coerced_subscriber([this](const std::vector<std::string>&){
+ throw uhd::runtime_error("This device does not support setting the GPIO_SRC attribute.");
});
break;
case usrp::gpio_atr::GPIO_CTRL:
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
index 88bbcf342..38d9c2c66 100644
--- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
+++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp
@@ -77,8 +77,8 @@ UHD_RFNOC_RADIO_BLOCK_CONSTRUCTOR(x300_radio_ctrl)
case usrp::gpio_atr::GPIO_SRC:
_tree->create<std::vector<std::string>>(fs_path("gpio") / "FP0" / attr.second)
.set(std::vector<std::string>(32, usrp::gpio_atr::default_attr_value_map.at(attr.first)))
- .add_coerced_subscriber([this](const std::vector<std::string> str_val){
- throw uhd::runtime_error("This device does not support set SRC attribute.");
+ .add_coerced_subscriber([this](const std::vector<std::string>&){
+ throw uhd::runtime_error("This device does not support setting the GPIO_SRC attribute.");
});
break;
case usrp::gpio_atr::GPIO_CTRL: