aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2017-11-07 12:35:49 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:06 -0800
commit24699d016b9dc2de5b668fef1a5266f3d0a992ac (patch)
tree72a6d592062bbe0ae414e631d6c2537424b6f9e0 /host
parent61aac1dd722344928ae8217be5430ce3bfd66bf4 (diff)
downloaduhd-24699d016b9dc2de5b668fef1a5266f3d0a992ac.tar.gz
uhd-24699d016b9dc2de5b668fef1a5266f3d0a992ac.tar.bz2
uhd-24699d016b9dc2de5b668fef1a5266f3d0a992ac.zip
fpga load: mpmd property tree now uses the MPM list_updateable_components
Dynamically generates property tree by querying MPM device for a list of updateable components.
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/mpmd/mpmd_impl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp
index 6285ca11c..d2d15e32a 100644
--- a/host/lib/usrp/mpmd/mpmd_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_impl.cpp
@@ -171,8 +171,10 @@ namespace {
;
/*** Updateable Components ******************************************/
- std::vector<std::string> updateable_components = {"fpga"};
- //TODO: get with "list_updateable_components"
+ std::vector<std::string> updateable_components =
+ mb->rpc->request<std::vector<std::string>>(
+ "list_updateable_components"
+ );
UHD_LOG_DEBUG("MPMD",
"Found " << updateable_components.size() << " updateable motherboard components."
);