diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-08 16:06:31 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:05 -0800 |
commit | 2c9fe05fa8590033cfe0fcdfcb809560a91b4204 (patch) | |
tree | 0e5e53dc0d63f079e99554eeca273f397e64389c /host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | |
parent | bcf3f28e154b209119e812c9ae610ce4f3107759 (diff) | |
download | uhd-2c9fe05fa8590033cfe0fcdfcb809560a91b4204.tar.gz uhd-2c9fe05fa8590033cfe0fcdfcb809560a91b4204.tar.bz2 uhd-2c9fe05fa8590033cfe0fcdfcb809560a91b4204.zip |
mpmd: Use the get_last_error feature from the RPC client
The RPC client will now query the MPM server for details when an error
occured.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index d06f25939..1b3251464 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -31,7 +31,7 @@ namespace { const size_t MPMD_DEFAULT_INIT_TIMEOUT = 30000; //! Default timeout value for RPC calls (ms) const size_t MPMD_DEFAULT_RPC_TIMEOUT = 2000; - + //! Default session ID (MPM will recognize a session by this name) const std::string MPMD_DEFAULT_SESSION_ID = "UHD"; @@ -75,7 +75,10 @@ mpmd_mboard_impl::mpmd_mboard_impl( const device_addr_t &mb_args_, const std::string& rpc_server_addr ) : mb_args(mb_args_) - , rpc(uhd::rpc_client::make(rpc_server_addr, MPM_RPC_PORT)) + , rpc(uhd::rpc_client::make( + rpc_server_addr, + MPM_RPC_PORT, + MPM_RPC_GET_LAST_ERROR_CMD)) { UHD_LOGGER_TRACE("MPMD") << "Initializing mboard, connecting to RPC server address: " |