diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-12-10 15:54:45 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-12-16 09:20:01 -0600 |
commit | 65af3c3394bb94f82a005796d946776c08a20275 (patch) | |
tree | b0fa8764ff7c84ec0f0151023b95bfdcd77b7aea /host/lib/rfnoc/block_id.cpp | |
parent | c30ed7df510ea0939e3b3a595671d57801c4ef0d (diff) | |
download | uhd-65af3c3394bb94f82a005796d946776c08a20275.tar.gz uhd-65af3c3394bb94f82a005796d946776c08a20275.tar.bz2 uhd-65af3c3394bb94f82a005796d946776c08a20275.zip |
rfnoc: Fix block_id::get_tree_root()
The path it returned was only valid in UHD 3. Added unit test to
confirm.
Diffstat (limited to 'host/lib/rfnoc/block_id.cpp')
-rw-r--r-- | host/lib/rfnoc/block_id.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/block_id.cpp b/host/lib/rfnoc/block_id.cpp index da14632b2..b7eb2b2cc 100644 --- a/host/lib/rfnoc/block_id.cpp +++ b/host/lib/rfnoc/block_id.cpp @@ -59,7 +59,7 @@ std::string block_id_t::get_local() const uhd::fs_path block_id_t::get_tree_root() const { - return str(boost::format("/mboards/%d/xbar/%s") % get_device_no() % get_local()); + return uhd::fs_path("/blocks") / to_string(); } bool block_id_t::match(const std::string& block_str) |