From 05e93b66e9fd2df5622b025160b7ae2a2a670442 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 21 Nov 2017 10:31:22 -0800 Subject: mg: Add back _rpc_prefix --- host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 2 ++ host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp index e67d0b1fe..a8729af6a 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -100,6 +100,8 @@ UHD_RFNOC_RADIO_BLOCK_CONSTRUCTOR(magnesium_radio_ctrl) _master = _radio_slot == "A" or _radio_slot == "C"; UHD_LOG_DEBUG(unique_id(), "Radio type: " << (_master ? "master" : "slave")); + _rpc_prefix = + (_radio_slot == "A" or _radio_slot == "B") ? "db_0_" : "db_1_"; _init_defaults(); _init_peripherals(); diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp index 433ab9a94..91a7060d6 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp @@ -190,6 +190,9 @@ private: //! Letter representation of the radio we're currently running std::string _radio_slot; + //! Prepended for all dboard RPC calls + std::string _rpc_prefix; + //! If true, this is a master radio. This attribute will go away when we // move back to 1 radio block per dboard. bool _master; -- cgit v1.2.3