From c9b35e3b7107ab82c0e3978b7cbfd76ba98e2407 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Wed, 6 Jan 2021 11:34:05 -0600 Subject: Create C++ wrappers for MPM RPC calls This gives us type-safety, as well as allowing us to create unit tests for RFNoC radio_controls without having to create actual RPC servers and clients in the unit tests. This change also fixes a bug in mpmd_mb_controller::set_sync_source, where it was calling the wrong MPM function. --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 9fa0d43de..ac620f3e0 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -308,7 +308,7 @@ mpmd_mboard_impl::mpmd_mboard_impl( if (!mb_args.has_key("skip_init")) { // Initialize mb_iface and mb_controller mb_iface = std::make_unique(mb_args, rpc); - mb_ctrl = std::make_shared(rpc, device_info); + mb_ctrl = std::make_shared(std::make_shared(rpc), device_info); } // Note -- when skip_init is used, these are not initialized, and trying // to use them will result in a null pointer dereference exception! } -- cgit v1.2.3