aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Arnold <julian.arnold@ettus.com>2015-01-20 08:55:37 -0800
committerMartin Braun <martin.braun@ettus.com>2015-01-20 19:32:13 +0100
commit93bd61a0fec4ea7e81ba78f62fb998116266ac96 (patch)
tree3605b8c38f8698136655fe9046241055dc125be4
parent47562bbf143889197f942168173ae7eb99209f19 (diff)
downloaduhd-93bd61a0fec4ea7e81ba78f62fb998116266ac96.tar.gz
uhd-93bd61a0fec4ea7e81ba78f62fb998116266ac96.tar.bz2
uhd-93bd61a0fec4ea7e81ba78f62fb998116266ac96.zip
b200: Expose temperature sensor through property tree (sensors/temp)
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 8ea50296f..22e68c4ed 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -710,6 +710,8 @@ void b200_impl::setup_radio(const size_t dspno)
.set(B200_DEFAULT_FREQ);
_tree->create<meta_range_t>(rf_fe_path / "freq" / "range")
.publish(boost::bind(&ad9361_ctrl::get_rf_freq_range));
+ _tree->create<sensor_value_t>(rf_fe_path / "sensors" / "temp")
+ .publish(boost::bind(&ad9361_ctrl::get_temperature, _codec_ctrl));
//setup RX related stuff
if (key[0] == 'R')