aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/latency/lib/Responder.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-06 14:28:37 -0800
committerAaron Rossetto <aaron.rossetto@ni.com>2020-03-12 07:35:15 -0500
commit3b2f712ff9ceb6875f9e875d8e3424cd858d0a10 (patch)
treeb9cc959df9abb6c8e81561b2512a01574fb12e02 /host/utils/latency/lib/Responder.cpp
parente806238b272b050e7de5ddcd9f793209837d0c2d (diff)
downloaduhd-3b2f712ff9ceb6875f9e875d8e3424cd858d0a10.tar.gz
uhd-3b2f712ff9ceb6875f9e875d8e3424cd858d0a10.tar.bz2
uhd-3b2f712ff9ceb6875f9e875d8e3424cd858d0a10.zip
utils/C API: Fix property tree access
The introduction of multi_usrp_rfnoc caused multi_usrp::get_device()->get_tree() to segfault for gen3 devices. In defcb174, we introduced a fix for this (multi_usrp::get_tree()) but we didn't apply it to internal utilities. That means the uhd_cal_* utilties were broken, along with certain sections of the C API, and the latency test suite. This fixes the segfault issue.
Diffstat (limited to 'host/utils/latency/lib/Responder.cpp')
-rw-r--r--host/utils/latency/lib/Responder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/latency/lib/Responder.cpp b/host/utils/latency/lib/Responder.cpp
index 0d7a307dd..c2f224d00 100644
--- a/host/utils/latency/lib/Responder.cpp
+++ b/host/utils/latency/lib/Responder.cpp
@@ -284,7 +284,7 @@ void Responder::print_test_parameters()
// available
void Responder::set_usrp_rx_dc_offset(uhd::usrp::multi_usrp::sptr usrp, bool ena)
{
- uhd::property_tree::sptr tree = usrp->get_device()->get_tree();
+ uhd::property_tree::sptr tree = usrp->get_tree();
// FIXME: Path needs to be build in a programmatic way.
bool dc_offset_exists =
tree->exists(uhd::fs_path("/mboards/0/rx_frontends/A/dc_offset"));