aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/x400/x400_gpio_control.cpp3
-rw-r--r--host/lib/usrp/x400/x400_gpio_control.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/x400/x400_gpio_control.cpp b/host/lib/usrp/x400/x400_gpio_control.cpp
index 706364e87..b0eb4f27e 100644
--- a/host/lib/usrp/x400/x400_gpio_control.cpp
+++ b/host/lib/usrp/x400/x400_gpio_control.cpp
@@ -151,8 +151,7 @@ uint32_t uhd::rfnoc::x400::x400_gpio_port_mapping::map_value(const uint32_t& val
}
}
throw uhd::lookup_error(
- "Could not find corresponding GPIO pin number for given SPI pin " + value);
- return 0;
+ std::string("Could not find corresponding GPIO pin number for given SPI pin ") + std::to_string(value));
}
uint32_t uhd::rfnoc::x400::x400_gpio_port_mapping::unmap_value(const uint32_t& value)
diff --git a/host/lib/usrp/x400/x400_gpio_control.hpp b/host/lib/usrp/x400/x400_gpio_control.hpp
index 4e5aed587..492413685 100644
--- a/host/lib/usrp/x400/x400_gpio_control.hpp
+++ b/host/lib/usrp/x400/x400_gpio_control.hpp
@@ -21,6 +21,8 @@ class x400_gpio_port_mapping : public uhd::mapper::gpio_port_mapper
public:
x400_gpio_port_mapping(){};
+ virtual ~x400_gpio_port_mapping() = default;
+
uint32_t map_value(const uint32_t& value) override;
uint32_t unmap_value(const uint32_t& value) override;