aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-11-20 21:36:55 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:07 -0800
commit59ecec43d4120e0b8e5d5d6ede1c673b5575a14f (patch)
tree999ef41f50139634e4a94f4a43c8c897d97d3d17 /host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
parentb14cafd90c84e69cdb77aec2d8553c4d45213b8f (diff)
downloaduhd-59ecec43d4120e0b8e5d5d6ede1c673b5575a14f.tar.gz
uhd-59ecec43d4120e0b8e5d5d6ede1c673b5575a14f.tar.bz2
uhd-59ecec43d4120e0b8e5d5d6ede1c673b5575a14f.zip
mg: Init dboard sensors via MPM
Reviewed-By: Steven Bingler <steven.bingler@ni.com> Reviewed-By: Trung Tran <trung.tran@ettus.com>
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp11
1 files changed, 2 insertions, 9 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 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<direction_t>{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);
}
}
}