From 59ecec43d4120e0b8e5d5d6ede1c673b5575a14f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 20 Nov 2017 21:36:55 -0800 Subject: mg: Init dboard sensors via MPM Reviewed-By: Steven Bingler Reviewed-By: Trung Tran --- host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp') 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 290c5f541..8b722e725 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp @@ -414,17 +414,10 @@ void magnesium_radio_ctrl_impl::set_rpc_client( }) ; - // Sensors + // Init sensors for (const auto &dir : std::vector{RX_DIRECTION, TX_DIRECTION}) { for (size_t chan_idx = 0; chan_idx < 1 /* num channels FIXME */; chan_idx++) { - const fs_path fe_path = - fs_path("dboards") / - _radio_slot / - (dir == RX_DIRECTION ? "rx_frontends" : "tx_frontends") / - chan_idx; - UHD_LOG_TRACE(unique_id(), - "Stubbed out adding sensors for fe path " << fe_path); - // FIXME add sensors here + _init_mpm_sensors(dir, chan_idx); } } } -- cgit v1.2.3