diff options
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/common/max287x.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/common/max287x.hpp b/host/lib/usrp/common/max287x.hpp index 9022e0f02..2e87dc6ff 100644 --- a/host/lib/usrp/common/max287x.hpp +++ b/host/lib/usrp/common/max287x.hpp @@ -23,6 +23,7 @@ #include <uhd/types/ranges.hpp> #include <uhd/utils/log.hpp> #include <uhd/utils/math.hpp> +#include <uhd/utils/safe_call.hpp> #include <boost/assign.hpp> #include <boost/function.hpp> #include <boost/thread.hpp> @@ -475,7 +476,10 @@ max287x<max287x_regs_t>::max287x(write_fn func) : template <typename max287x_regs_t> max287x<max287x_regs_t>::~max287x() { - shutdown(); + UHD_SAFE_CALL + ( + shutdown(); + ) } template <typename max287x_regs_t> |