diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-21 10:31:22 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:06 -0800 |
commit | 05e93b66e9fd2df5622b025160b7ae2a2a670442 (patch) | |
tree | 17ae4687110e0dd6349589514659b820ba054e71 /host/lib/usrp/dboard | |
parent | 275b81c341cd072467cfb47cb50821f46f6193ae (diff) | |
download | uhd-05e93b66e9fd2df5622b025160b7ae2a2a670442.tar.gz uhd-05e93b66e9fd2df5622b025160b7ae2a2a670442.tar.bz2 uhd-05e93b66e9fd2df5622b025160b7ae2a2a670442.zip |
mg: Add back _rpc_prefix
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.hpp | 3 |
2 files changed, 5 insertions, 0 deletions
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; |