From 24699d016b9dc2de5b668fef1a5266f3d0a992ac Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 7 Nov 2017 12:35:49 -0800 Subject: 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. --- host/lib/usrp/mpmd/mpmd_impl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'host/lib') 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 updateable_components = {"fpga"}; - //TODO: get with "list_updateable_components" + std::vector updateable_components = + mb->rpc->request>( + "list_updateable_components" + ); UHD_LOG_DEBUG("MPMD", "Found " << updateable_components.size() << " updateable motherboard components." ); -- cgit v1.2.3